Added platform detect function

This commit is contained in:
Mark Qvist 2022-10-12 16:07:53 +02:00
parent 902f7af64d
commit 9a7585cbef
1 changed files with 6 additions and 0 deletions

View File

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