MCPcopy Create free account
hub / github.com/Windscribe/Desktop-App / GetCurrentOS

Function GetCurrentOS

tools/base/utils.py:25–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23
24
25def GetCurrentOS():
26 global _OS_CURRENT_NAME
27 if _OS_CURRENT_NAME is None:
28 _OS_CURRENT_NAME = {
29 "Windows": "win32", "Darwin": "macos", "Linux": "linux"
30 }.get(platform.system(), "unknown")
31 msg.Verbose("Detected OS: \"{}\"".format(_OS_CURRENT_NAME))
32 return _OS_CURRENT_NAME
33
34
35def LoadConfig(filename, loader=yaml.SafeLoader):

Callers 1

MakeUnicodePathFunction · 0.85

Calls 2

getMethod · 0.45
formatMethod · 0.45

Tested by

no test coverage detected