mirror of
https://github.com/markqvist/Reticulum
synced 2026-11-27 13:52:15 +00:00
Added platform detect function
This commit is contained in:
1 parent
902f7af64d
commit
9a7585cbef
1 file changed
+6
Vendored
+6
@@ -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
|
||||
|
||||
Reference in new issue
Block a user