mirror of
https://github.com/markqvist/Reticulum.git
synced 2024-11-05 05:40:14 +00:00
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.
|
:param configdir: Full path to a Reticulum configuration directory.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
RNS.vendor.platformutils.platform_checks()
|
||||||
|
|
||||||
if configdir != None:
|
if configdir != None:
|
||||||
Reticulum.configdir = configdir
|
Reticulum.configdir = configdir
|
||||||
|
|
||||||
|
11
RNS/vendor/platformutils.py
vendored
11
RNS/vendor/platformutils.py
vendored
@ -4,4 +4,13 @@ def get_platform():
|
|||||||
return 'android'
|
return 'android'
|
||||||
else:
|
else:
|
||||||
import sys
|
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
Block a user