Created check_platform method

This commit is contained in:
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

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)