mirror of
https://github.com/markqvist/Reticulum.git
synced 2024-11-22 21:50:18 +00: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
|
||||
return sys.platform
|
||||
|
||||
def is_linux():
|
||||
if get_platform() == "linux":
|
||||
return True
|
||||
else:
|
||||
return False
|
||||
|
||||
def is_darwin():
|
||||
if get_platform() == "darwin":
|
||||
return True
|
||||
|
Loading…
Reference in New Issue
Block a user