mirror of
https://github.com/markqvist/Reticulum.git
synced 2024-10-01 03:15:44 -04:00
Added platform detect function
This commit is contained in:
parent
902f7af64d
commit
9a7585cbef
6
RNS/vendor/platformutils.py
vendored
6
RNS/vendor/platformutils.py
vendored
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user