Skip to content

Commit dba9085

Browse files
committed
Fix #15
1 parent 3a5bf68 commit dba9085

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sober/_simulator.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ def _run_epmacro(cwd: Path) -> None:
2121
_run(cmd_args, cwd)
2222

2323
# rename output files
24-
(cwd / "out.idf").rename(cwd / "in.idf")
25-
(cwd / "audit.out").rename(cwd / "epmacro.audit")
24+
(cwd / "out.idf").replace(cwd / "in.idf")
25+
(cwd / "audit.out").replace(cwd / "epmacro.audit")
2626

2727

2828
def _run_expandobjects(cwd: Path) -> None:
@@ -34,9 +34,9 @@ def _run_expandobjects(cwd: Path) -> None:
3434
_run(cmd_args, cwd)
3535

3636
# rename output files
37-
(cwd / "expanded.idf").rename(cwd / "in.idf")
37+
(cwd / "expanded.idf").replace(cwd / "in.idf")
3838
if (cwd / "expandedidf.err").exists():
39-
(cwd / "expandedidf.err").rename(cwd / "expandobjects.audit")
39+
(cwd / "expandedidf.err").replace(cwd / "expandobjects.audit")
4040
idd_file.unlink()
4141

4242

0 commit comments

Comments
 (0)