File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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
2828def _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
You can’t perform that action at this time.
0 commit comments