定位 agent_kimi.acl 配置文件(与本脚本同目录)
()
| 48 | |
| 49 | |
| 50 | def find_config() -> str: |
| 51 | """定位 agent_kimi.acl 配置文件(与本脚本同目录)""" |
| 52 | if env := os.environ.get("A3S_CONFIG"): |
| 53 | return env |
| 54 | script_dir = Path(__file__).parent |
| 55 | candidate = script_dir / "agent_kimi.acl" |
| 56 | if candidate.exists(): |
| 57 | return str(candidate) |
| 58 | raise FileNotFoundError(f"配置文件未找到:{candidate}") |
| 59 | |
| 60 | |
| 61 | def log(msg: str): |
no test coverage detected