Skip to content

Commit

Permalink
Backport PR #5917: use shutil.move instead of os.rename
Browse files Browse the repository at this point in the history
when moving config files

closes #5898
  • Loading branch information
minrk committed Jun 24, 2014
1 parent 7d09117 commit 03989da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion IPython/utils/path.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ def get_ipython_dir():
'to get rid of this message').format(cu(xdg_ipdir), cu(ipdir)))
else:
warnings.warn('Moving {0} to {1}'.format(cu(xdg_ipdir), cu(ipdir)))
os.rename(xdg_ipdir, ipdir)
shutil.move(xdg_ipdir, ipdir)

ipdir = os.path.normpath(os.path.expanduser(ipdir))

Expand Down

0 comments on commit 03989da

Please sign in to comment.