mirror of
https://github.com/markqvist/Reticulum.git
synced 2024-11-05 13:50: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
|
||||||
|
|
||||||
|
9
RNS/vendor/platformutils.py
vendored
9
RNS/vendor/platformutils.py
vendored
@ -5,3 +5,12 @@ def get_platform():
|
|||||||
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