##// END OF EJS Templates
When moving old config files, don't clobber files we've previously moved.
Thomas Kluyver -
Show More
@@ -435,6 +435,10 b' def check_for_old_config(ipython_dir=None):'
435 os.unlink(f)
435 os.unlink(f)
436 else:
436 else:
437 oldf = f+'.old'
437 oldf = f+'.old'
438 i = 0
439 while os.path.exists(oldf):
440 oldf = f+'.old.%i'%i
441 i += 1
438 os.rename(f, oldf)
442 os.rename(f, oldf)
439 warn.warn("Renamed old IPython config file '%s' to '%s'." % (f, oldf))
443 warn.warn("Renamed old IPython config file '%s' to '%s'." % (f, oldf))
440 warned = True
444 warned = True
General Comments 0
You need to be logged in to leave comments. Login now