The title I am running a Python script on my phone via QPython explains too much questions. I basically need to see if the script is running on an Android device. I have tried the os.name
, sys.platform
and platform.system ()
, but these are just different types of "Linux" or "Pausix", which is not quite specific (as far as I know - maybe I'm missing some relevant information here).
I tried to import the android
module, and then use the success or failure to determine what OS Android actually is to me and android
Module is not required, so it looks a bit more.
You can see in the 'ANDROID_STORAGE'
environment:
& gt; & Gt; & Gt; From OS Import environment & gt; & Gt; & Gt; Is_android = 'ANDROID_STORAGE' & gt; & Gt; & Gt; Is_android True
Comments
Post a Comment