MCPcopy
hub / github.com/opentrace/opentrace / _resolve_config_path

Function _resolve_config_path

agent/src/opentrace_agent/cli/main.py:950–957  ·  view source on GitHub ↗

Return the config file path, preferring an existing .opentrace/ dir.

()

Source from the content-addressed store, hash-verified

948
949
950def _resolve_config_path() -> Path:
951 """Return the config file path, preferring an existing .opentrace/ dir."""
952 from opentrace_agent.cli.config import CONFIG_NAME
953
954 ot_dir = _find_opentrace_dir()
955 if ot_dir is not None:
956 return ot_dir / CONFIG_NAME
957 return Path.cwd() / OPENTRACE_DIR / CONFIG_NAME
958
959
960@app.group()

Callers 4

config_setFunction · 0.85
config_getFunction · 0.85
config_showFunction · 0.85
config_pathFunction · 0.85

Calls 1

_find_opentrace_dirFunction · 0.85

Tested by

no test coverage detected