2021-12-01 10:39:06 +00:00
|
|
|
def get_platform():
|
|
|
|
from os import environ
|
|
|
|
if 'ANDROID_ARGUMENT' in environ:
|
|
|
|
return 'android'
|
|
|
|
else:
|
|
|
|
import sys
|
2022-01-12 09:07:44 +00:00
|
|
|
return sys.platform
|
|
|
|
|
|
|
|
def platform_checks():
|
|
|
|
if str(get_platform()).startswith("win32"):
|
2022-01-12 09:16:59 +00:00
|
|
|
import sys
|
2022-01-12 09:07:44 +00:00
|
|
|
if sys.version_info.major >= 3 and sys.version_info.minor >= 8:
|
|
|
|
pass
|
|
|
|
else:
|
2022-01-12 09:16:59 +00:00
|
|
|
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)
|
2022-01-12 09:07:44 +00:00
|
|
|
RNS.panic()
|