fix system name on android
This commit is contained in:
parent
ca1d135ba4
commit
12eb83f773
1 changed files with 4 additions and 1 deletions
|
@ -8,12 +8,15 @@ log = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
def get_platform() -> dict:
|
def get_platform() -> dict:
|
||||||
|
os_system = platform.system()
|
||||||
|
if os.environ and 'ANDROID_ARGUMENT' in os.environ:
|
||||||
|
os_system = 'android'
|
||||||
p = {
|
p = {
|
||||||
"processor": platform.processor(),
|
"processor": platform.processor(),
|
||||||
"python_version": platform.python_version(),
|
"python_version": platform.python_version(),
|
||||||
"platform": platform.platform(),
|
"platform": platform.platform(),
|
||||||
"os_release": platform.release(),
|
"os_release": platform.release(),
|
||||||
"os_system": platform.system(),
|
"os_system": os_system,
|
||||||
"lbrynet_version": lbrynet_version,
|
"lbrynet_version": lbrynet_version,
|
||||||
"build": build_type.BUILD, # CI server sets this during build step
|
"build": build_type.BUILD, # CI server sets this during build step
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue