##// END OF EJS Templates
Rename old config files if they are found and not pristine.
Thomas Kluyver -
Show More
@@ -434,16 +434,19 b' def check_for_old_config(ipython_dir=None):'
434 if filehash(f) == old_config_md5.get(cfg, ''):
434 if filehash(f) == old_config_md5.get(cfg, ''):
435 os.unlink(f)
435 os.unlink(f)
436 else:
436 else:
437 oldf = f+'.old'
438 os.rename(f, oldf)
439 warn.warn("Renamed old IPython config file '%s' to '%s'." % (f, oldf))
437 warned = True
440 warned = True
438 warn.warn("Found old IPython config file %r (modified by user)"%f)
439
441
440 if warned:
442 if warned:
441 warn.warn("""
443 warn.info("""
442 The IPython configuration system has changed as of 0.11, and these files
444 The IPython configuration system has changed as of 0.11, and these files will
443 will be ignored. See http://ipython.github.com/ipython-doc/dev/config for
445 be ignored. See http://ipython.github.com/ipython-doc/dev/config for details
444 details on the new config system. To start configuring IPython, do
446 of the new config system.
445 `ipython profile create`, and edit `ipython_config.py` in
447 To start configuring IPython, do `ipython profile create`, and edit
446 <ipython_dir>/profile_default, adding
448 `ipython_config.py` in <ipython_dir>/profile_default.
447 `c.InteractiveShellApp.ignore_old_config=True`""")
449 If you need to leave the old config files in place for an older version of
450 IPython, set `c.InteractiveShellApp.ignore_old_config=True` in the new config.""")
448
451
449
452
General Comments 0
You need to be logged in to leave comments. Login now