Skip to content

Commit

Permalink
Use replace instead rename to avoid failure on windows
Browse files Browse the repository at this point in the history
Co-authored-by: Алексей <[email protected]>
Co-authored-by: Christoph Reiter <[email protected]>
  • Loading branch information
Alexpux and lazka committed Jul 19, 2023
1 parent 55ae2b2 commit 6ff22ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -1587,7 +1587,7 @@ def copy_scripts(self):
else:
newfilename = filename + minoronly
log.info(f'renaming {filename} to {newfilename}')
os.rename(filename, newfilename)
os.replace(filename, newfilename)
newoutfiles.append(newfilename)
if filename in updated_files:
newupdated_files.append(newfilename)
Expand Down

0 comments on commit 6ff22ae

Please sign in to comment.