Permalink
Browse files

use App.instance() in launch_new_instance

This way later calls to App.instance() will return the running
application, whereas calling App() would create an isolated
Application object.
  • Loading branch information...
1 parent bba8a52 commit abf93bea62c36378a961bf76e3a58a2c81f1a9f1 @minrk committed Jun 7, 2011
Showing with 1 addition and 3 deletions.
  1. +1 −3 IPython/frontend/terminal/ipapp.py
@@ -345,10 +345,8 @@ def load_default_config(ipython_dir=None):
def launch_new_instance():
"""Create and run a full blown IPython instance"""
- app = TerminalIPythonApp()
+ app = TerminalIPythonApp.instance()
app.initialize()
- # print app.config
- # print app.profile_dir.location
app.start()

0 comments on commit abf93be

Please sign in to comment.