MCPcopy Create free account
hub / github.com/apache/arrow / default_bin

Function default_bin

dev/archery/archery/utils/command.py:26–29  ·  view source on GitHub ↗
(name, default)

Source from the content-addressed store, hash-verified

24
25
26def default_bin(name, default):
27 assert default
28 env_name = f"ARCHERY_{default.upper()}_BIN"
29 return name if name else os.environ.get(env_name, default)
30
31
32# Decorator running a command and returning stdout

Callers 7

__init__Method · 0.85
__init__Method · 0.85
__init__Method · 0.85
__init__Method · 0.85
__init__Method · 0.85
__init__Method · 0.85
__init__Method · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected