Updated platform utils
This commit is contained in:
parent
b6df952995
commit
25620415a0
|
@ -6,8 +6,14 @@ def get_platform():
|
||||||
import sys
|
import sys
|
||||||
return sys.platform
|
return sys.platform
|
||||||
|
|
||||||
|
def is_windows():
|
||||||
|
if str(get_platform()).startswith("win"):
|
||||||
|
return True
|
||||||
|
else:
|
||||||
|
return False
|
||||||
|
|
||||||
def platform_checks():
|
def platform_checks():
|
||||||
if str(get_platform()).startswith("win32"):
|
if is_windows():
|
||||||
import sys
|
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
|
||||||
|
@ -15,4 +21,4 @@ def platform_checks():
|
||||||
import RNS
|
import RNS
|
||||||
RNS.log("On Windows, Reticulum requires Python 3.8 or higher.", RNS.LOG_ERROR)
|
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.log("Please update Python to run Reticulum.", RNS.LOG_ERROR)
|
||||||
RNS.panic()
|
RNS.panic()
|
||||||
|
|
Loading…
Reference in New Issue