Platform version check for Windows
This commit is contained in:
parent
b978a993b2
commit
a72aaf12ca
|
@ -116,6 +116,8 @@ class Reticulum:
|
|||
:param configdir: Full path to a Reticulum configuration directory.
|
||||
"""
|
||||
|
||||
RNS.vendor.platformutils.platform_checks()
|
||||
|
||||
if configdir != None:
|
||||
Reticulum.configdir = configdir
|
||||
|
||||
|
|
|
@ -4,4 +4,13 @@ def get_platform():
|
|||
return 'android'
|
||||
else:
|
||||
import sys
|
||||
return sys.platform
|
||||
return sys.platform
|
||||
|
||||
def platform_checks():
|
||||
if str(get_platform()).startswith("win32"):
|
||||
if sys.version_info.major >= 3 and sys.version_info.minor >= 8:
|
||||
pass
|
||||
else:
|
||||
RNS.log("On Windows, Reticulum requires Python 3.8 or higher.")
|
||||
RNS.log("Please update Python to run Reticulum.")
|
||||
RNS.panic()
|
Loading…
Reference in New Issue