Added platform detect function

This commit is contained in:
Mark Qvist 2022-10-12 16:07:53 +02:00
parent 902f7af64d
commit 9a7585cbef

View File

@ -8,6 +8,12 @@ def get_platform():
import sys import sys
return sys.platform return sys.platform
def is_linux():
if get_platform() == "linux":
return True
else:
return False
def is_darwin(): def is_darwin():
if get_platform() == "darwin": if get_platform() == "darwin":
return True return True