MCPcopy Create free account
hub / github.com/apache/nifi-minifi-cpp / get_distro

Function get_distro

bootstrap.py:65–74  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

63
64
65def get_distro():
66 if is_mac():
67 return ["osx", "", "darwin"]
68 try:
69 if distro_available:
70 return distro.linux_distribution(full_distribution_name=False)
71 else:
72 return platform.linux_distribution()
73 except:
74 return ["N/A", "N/A", "N/A"]
75
76
77def is_mac():

Callers 2

mapped_distroFunction · 0.85
mainFunction · 0.85

Calls 1

is_macFunction · 0.85

Tested by

no test coverage detected