forked from p15670423/monkey
Added a common method to determine the runtime OS
This commit is contained in:
parent
02ead23d04
commit
a31067a752
|
@ -0,0 +1,11 @@
|
|||
import platform
|
||||
|
||||
WINDOWS = "Windows"
|
||||
LINUX = "Linux"
|
||||
|
||||
|
||||
def get_runtime_os() -> str:
|
||||
if platform.system() == "Windows":
|
||||
return WINDOWS
|
||||
else:
|
||||
return LINUX
|
Loading…
Reference in New Issue