Skip to content

Commit f07a5a8

Browse files
authored
Update cli.py
1 parent da40aec commit f07a5a8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎python_agent_harness/cli.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ def cmd_config(args: argparse.Namespace) -> int:
175175
if path.exists() and not args.force:
176176
print(f"config already exists: {path} (use --force to overwrite)")
177177
return 1
178-
template = config.CONFIG_TEMPLATE.format(path=path)
178+
template = config.CONFIG_TEMPLATE.format(path=str(path).replace("\\", "\\\\"))
179179
path.write_text(template, encoding="utf-8")
180180
print(f"wrote config template: {path}")
181181
return 0

0 commit comments

Comments
 (0)