Platform version check for Windows
This commit is contained in:
parent
a72aaf12ca
commit
b6df952995
6
RNS/vendor/platformutils.py
vendored
6
RNS/vendor/platformutils.py
vendored
@ -8,9 +8,11 @@ def get_platform():
|
|||||||
|
|
||||||
def platform_checks():
|
def platform_checks():
|
||||||
if str(get_platform()).startswith("win32"):
|
if str(get_platform()).startswith("win32"):
|
||||||
|
import sys
|
||||||
if sys.version_info.major >= 3 and sys.version_info.minor >= 8:
|
if sys.version_info.major >= 3 and sys.version_info.minor >= 8:
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
RNS.log("On Windows, Reticulum requires Python 3.8 or higher.")
|
import RNS
|
||||||
RNS.log("Please update Python to run Reticulum.")
|
RNS.log("On Windows, Reticulum requires Python 3.8 or higher.", RNS.LOG_ERROR)
|
||||||
|
RNS.log("Please update Python to run Reticulum.", RNS.LOG_ERROR)
|
||||||
RNS.panic()
|
RNS.panic()
|
Loading…
Reference in New Issue
Block a user