Merge pull request #2139 from lbryio/android-platform-name

fix system name on android
This commit is contained in:
Jack Robison 2019-05-17 14:39:20 -04:00 committed by GitHub
commit 3f37963f7f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,12 +8,15 @@ log = logging.getLogger(__name__)
def get_platform() -> dict:
os_system = platform.system()
if os.environ and 'ANDROID_ARGUMENT' in os.environ:
os_system = 'android'
p = {
"processor": platform.processor(),
"python_version": platform.python_version(),
"platform": platform.platform(),
"os_release": platform.release(),
"os_system": platform.system(),
"os_system": os_system,
"lbrynet_version": lbrynet_version,
"build": build_type.BUILD, # CI server sets this during build step
}