Added doc string to check_platform

This commit is contained in:
sTiKyt 2020-06-09 02:28:40 +03:00
parent 9f70af7ecb
commit b4a365de15
No known key found for this signature in database
GPG Key ID: 510E1C3C9B2414B4

View File

@ -221,6 +221,13 @@ def check_php():
exit() exit()
def check_platform(required_data): def check_platform(required_data):
"""Checks system for specific platform related data and returns requested value.
Args:
required_data (string): accepts "system" or "architecture"
Returns:
string: data requested by required_data, Returns all if required_data isn't specified.
"""
system = platform.system() system = platform.system()
architecture = platform.machine() architecture = platform.machine()
if required_data == "system": if required_data == "system":