From 9a7585cbefc279a504b4945d21938f462a57fef6 Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Wed, 12 Oct 2022 16:07:53 +0200 Subject: [PATCH] Added platform detect function --- RNS/vendor/platformutils.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/RNS/vendor/platformutils.py b/RNS/vendor/platformutils.py index d8cc705..b821af5 100644 --- a/RNS/vendor/platformutils.py +++ b/RNS/vendor/platformutils.py @@ -8,6 +8,12 @@ def get_platform(): import sys return sys.platform +def is_linux(): + if get_platform() == "linux": + return True + else: + return False + def is_darwin(): if get_platform() == "darwin": return True