Platform version check for Windows

This commit is contained in:
Mark Qvist 2022-01-12 10:16:59 +01:00
parent a72aaf12ca
commit b6df952995
1 changed files with 4 additions and 2 deletions

View File

@ -8,9 +8,11 @@ def get_platform():
def platform_checks():
if str(get_platform()).startswith("win32"):
import sys
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.")
import RNS
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()