Created check_platform method

pull/690/head
sTiKyt 2020-06-09 02:27:54 +03:00
parent fee7c05d71
commit 9f70af7ecb
No known key found for this signature in database
GPG Key ID: 510E1C3C9B2414B4
1 changed files with 10 additions and 0 deletions

View File

@ -219,3 +219,13 @@ def check_php():
except:
print(localization.lang_check_php["not-found"])
exit()
def check_platform(required_data):
system = platform.system()
architecture = platform.machine()
if required_data == "system":
return system
elif required_data == "architecture":
return architecture
else:
return "System: {0}, Architecture: {1}".format(system, architecture)