Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/mlco2/codecarbon
/ is_windows_os
Function
is_windows_os
codecarbon/core/util.py:95–97 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
93
94
95
def
is_windows_os() -> bool:
96
system = sys.platform.lower()
97
return
system.startswith(
"win"
)
98
99
100
def
is_linux_os() -> bool:
Callers
1
_get_install_instructions
Method · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…