MCPcopy Create free account
hub / github.com/AnswerDotAI/gpu.cpp / get_os_name

Function get_os_name

setup.py:8–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6from pathlib import Path
7
8def get_os_name():
9 system = platform.system()
10 if system == "Windows":
11 return "Windows 64-bit" if platform.machine().endswith('64') else "Windows 32-bit"
12 elif system == "Darwin":
13 return "macOS"
14 elif system == "Linux":
15 return "Linux"
16 elif system == "FreeBSD":
17 return "FreeBSD"
18 elif system.startswith("CYGWIN"):
19 return "Cygwin"
20 else:
21 return "Other"
22
23def download_file(url, output_filename):
24 total_downloaded = 0

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected