Return the config file path, preferring an existing .opentrace/ dir.
()
| 948 | |
| 949 | |
| 950 | def _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() |
no test coverage detected