1 parent da40aec commit f07a5a8Copy full SHA for f07a5a8
1 file changed
python_agent_harness/cli.py
@@ -175,7 +175,7 @@ def cmd_config(args: argparse.Namespace) -> int:
175
if path.exists() and not args.force:
176
print(f"config already exists: {path} (use --force to overwrite)")
177
return 1
178
- template = config.CONFIG_TEMPLATE.format(path=path)
+ template = config.CONFIG_TEMPLATE.format(path=str(path).replace("\\", "\\\\"))
179
path.write_text(template, encoding="utf-8")
180
print(f"wrote config template: {path}")
181
return 0
0 commit comments