From ea3716f48e93facae6154fd6785857da0861987a Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Wed, 1 Dec 2021 11:39:06 +0100 Subject: [PATCH] Added Android platform detection --- RNS/vendor/platformutils.py | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 RNS/vendor/platformutils.py diff --git a/RNS/vendor/platformutils.py b/RNS/vendor/platformutils.py new file mode 100644 index 0000000..6ce0aca --- /dev/null +++ b/RNS/vendor/platformutils.py @@ -0,0 +1,7 @@ +def get_platform(): + from os import environ + if 'ANDROID_ARGUMENT' in environ: + return 'android' + else: + import sys + return sys.platform \ No newline at end of file