From 25620415a0e849405b26954f086f2c79c8b7345d Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Wed, 12 Jan 2022 11:18:24 +0100 Subject: [PATCH] Updated platform utils --- RNS/vendor/platformutils.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/RNS/vendor/platformutils.py b/RNS/vendor/platformutils.py index a4c9734..e22ee0c 100644 --- a/RNS/vendor/platformutils.py +++ b/RNS/vendor/platformutils.py @@ -6,8 +6,14 @@ def get_platform(): import sys return sys.platform +def is_windows(): + if str(get_platform()).startswith("win"): + return True + else: + return False + def platform_checks(): - if str(get_platform()).startswith("win32"): + if is_windows(): import sys if sys.version_info.major >= 3 and sys.version_info.minor >= 8: pass @@ -15,4 +21,4 @@ def platform_checks(): 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() \ No newline at end of file + RNS.panic()