mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-30 12:11:32 +08:00
Fix renaming scripts
This commit is contained in:
parent
432377439b
commit
e8d357707a
@ -357,6 +357,8 @@ class build_scripts_rename(build_scripts):
|
||||
new_outfiles = [p + self._suffix for p in outfiles]
|
||||
updated_files = [p + self._suffix for p in updated_files]
|
||||
for old, new in zip(outfiles, new_outfiles):
|
||||
if os.path.exists(new):
|
||||
os.unlink(new)
|
||||
self.move_file(old, new)
|
||||
return new_outfiles, updated_files
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user