Skip to content

Commit

Permalink
use App.instance() in launch_new_instance
Browse files Browse the repository at this point in the history
This way later calls to App.instance() will return the running
application, whereas calling App() would create an isolated
Application object.
  • Loading branch information
minrk committed Jun 10, 2011
1 parent bba8a52 commit abf93be
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions IPython/frontend/terminal/ipapp.py
Expand Up @@ -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()


Expand Down

0 comments on commit abf93be

Please sign in to comment.