kopia lustrzana https://github.com/markqvist/reticulum
Added platform detect function
rodzic
902f7af64d
commit
9a7585cbef
|
@ -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
|
||||||
|
|
Ładowanie…
Reference in New Issue