##// 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 434 if filehash(f) == old_config_md5.get(cfg, ''):
435 435 os.unlink(f)
436 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 440 warned = True
438 warn.warn("Found old IPython config file %r (modified by user)"%f)
439 441
440 442 if warned:
441 warn.warn("""
442 The IPython configuration system has changed as of 0.11, and these files
443 will be ignored. See http://ipython.github.com/ipython-doc/dev/config for
444 details on the new config system. To start configuring IPython, do
445 `ipython profile create`, and edit `ipython_config.py` in
446 <ipython_dir>/profile_default, adding
447 `c.InteractiveShellApp.ignore_old_config=True`""")
443 warn.info("""
444 The IPython configuration system has changed as of 0.11, and these files will
445 be ignored. See http://ipython.github.com/ipython-doc/dev/config for details
446 of the new config system.
447 To start configuring IPython, do `ipython profile create`, and edit
448 `ipython_config.py` in <ipython_dir>/profile_default.
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