##// END OF EJS Templates
add ignore_old_config configurable...
MinRK -
Show More
@@ -11,6 +11,10 b' c = get_config()'
11
11
12 # c.Global.nosep = True
12 # c.Global.nosep = True
13
13
14 # If you still use multiple versions of IPytho on the same machine,
15 # set this to True to suppress warnings about old configuration files
16 # c.Global.ignore_old_config = False
17
14 # Set this to determine the detail of what is logged at startup.
18 # Set this to determine the detail of what is logged at startup.
15 # The default is 30 and possible values are 0,10,20,30,40,50.
19 # The default is 30 and possible values are 0,10,20,30,40,50.
16 # c.Global.log_level = 20
20 # c.Global.log_level = 20
@@ -635,7 +635,8 b' class IPythonApp(Application):'
635 self.shell.showtraceback()
635 self.shell.showtraceback()
636
636
637 def start_app(self):
637 def start_app(self):
638 check_for_old_config(self.ipython_dir)
638 if not getattr(self.master_config.Global, 'ignore_old_config', False):
639 check_for_old_config(self.ipython_dir)
639 if self.master_config.Global.interact:
640 if self.master_config.Global.interact:
640 self.log.debug("Starting IPython's mainloop...")
641 self.log.debug("Starting IPython's mainloop...")
641 self.shell.mainloop()
642 self.shell.mainloop()
@@ -418,4 +418,6 b' def check_for_old_config(ipython_dir=None):'
418 warn.warn("""Found old IPython config file %r.
418 warn.warn("""Found old IPython config file %r.
419 The IPython configuration system has changed as of 0.11, and this file will be ignored.
419 The IPython configuration system has changed as of 0.11, and this file will be ignored.
420 See http://ipython.github.com/ipython-doc/dev/config for details on the new config system.
420 See http://ipython.github.com/ipython-doc/dev/config for details on the new config system.
421 The current default config file is 'ipython_config.py'"""%f)
421 The current default config file is 'ipython_config.py', where you can suppress these
422 warnings with `Global.ignore_old_config = True`."""%f)
423
General Comments 0
You need to be logged in to leave comments. Login now