Platform version check for Windows

This commit is contained in:
Mark Qvist 2022-01-12 10:07:44 +01:00
parent b978a993b2
commit a72aaf12ca
2 changed files with 12 additions and 1 deletions

View File

@ -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

View File

@ -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()