Added a common method to determine the runtime OS

This commit is contained in:
VakarisZ 2021-05-21 15:25:37 +03:00
parent 02ead23d04
commit a31067a752
1 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,11 @@
import platform
WINDOWS = "Windows"
LINUX = "Linux"
def get_runtime_os() -> str:
if platform.system() == "Windows":
return WINDOWS
else:
return LINUX