Added Android platform detection

This commit is contained in:
Mark Qvist 2021-12-01 11:39:06 +01:00
parent 165e620043
commit ea3716f48e
1 changed files with 7 additions and 0 deletions

7
RNS/vendor/platformutils.py vendored Normal file
View File

@ -0,0 +1,7 @@
def get_platform():
from os import environ
if 'ANDROID_ARGUMENT' in environ:
return 'android'
else:
import sys
return sys.platform