mirror of
https://github.com/DarkSecDevelopers/HiddenEye-Legacy.git
synced 2024-03-22 21:12:55 +08:00
Created check_platform method
This commit is contained in:
parent
fee7c05d71
commit
9f70af7ecb
|
@ -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)
|
Loading…
Reference in New Issue
Block a user