MCPcopy Create free account
hub / github.com/NTNU-IHB/PythonFMU / get_platform

Function get_platform

pythonfmu/osutil.py:5–10  ·  view source on GitHub ↗

Get FMU binary platform folder name.

()

Source from the content-addressed store, hash-verified

3
4
5def get_platform() -> str:
6 """Get FMU binary platform folder name."""
7 system = platform.system()
8 is_64bits = sys.maxsize > 2 ** 32
9 platforms = {"Windows": "win", "Linux": "linux", "Darwin": "darwin"}
10 return platforms.get(system, "unknown") + "64" if is_64bits else "32"
11
12
13def get_lib_extension() -> str:

Callers 2

has_binaryMethod · 0.85
test_zip_contentFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_zip_contentFunction · 0.68