mirror of
https://github.com/Aider-AI/aider
synced 2026-05-05 06:32:04 +02:00
fix: Update temporary script logging to use f-string and full sys.argv
This commit is contained in:
@@ -95,9 +95,10 @@ def test_pipe_editor_with_fake_editor():
|
||||
import tempfile
|
||||
|
||||
with tempfile.NamedTemporaryFile(mode="w", suffix=".py", delete=False) as f:
|
||||
f.write("""import sys
|
||||
with open(sys.argv[0] + ".log", "w") as f:
|
||||
f.write(" ".join(sys.argv[1:]))
|
||||
log_path = f.name + ".log"
|
||||
f.write(f"""import sys
|
||||
with open("{log_path}", "w") as f:
|
||||
f.write(" ".join(sys.argv))
|
||||
""")
|
||||
script_path = f.name
|
||||
|
||||
|
||||
Reference in New Issue
Block a user