diff --git a/IPython/iplib.py b/IPython/iplib.py index 61a63f1..cbb3bac 100644 --- a/IPython/iplib.py +++ b/IPython/iplib.py @@ -6,7 +6,7 @@ Requires Python 2.3 or newer. This file contains all the classes and helper functions specific to IPython. -$Id: iplib.py 1087 2006-01-27 17:02:42Z vivainio $ +$Id: iplib.py 1088 2006-01-27 17:16:45Z vivainio $ """ #***************************************************************************** @@ -410,7 +410,7 @@ class InteractiveShell(object,Magic): for hook_name in hooks.__all__: # default hooks have priority 100, i.e. low; user hooks should have 0-100 priority self.set_hook(hook_name,getattr(hooks,hook_name), 100) - print "bound hook",hook_name + #print "bound hook",hook_name # Flag to mark unconditional exit self.exit_now = False diff --git a/IPython/ipmaker.py b/IPython/ipmaker.py index 109dffd..d22ae9d 100644 --- a/IPython/ipmaker.py +++ b/IPython/ipmaker.py @@ -6,7 +6,7 @@ Requires Python 2.1 or better. This file contains the main make_IPython() starter function. -$Id: ipmaker.py 1086 2006-01-27 16:02:38Z vivainio $""" +$Id: ipmaker.py 1088 2006-01-27 17:16:45Z vivainio $""" #***************************************************************************** # Copyright (C) 2001-2006 Fernando Perez. @@ -666,7 +666,8 @@ object? -> Details about 'object'. ?object also works, ?? prints more. old_excepthook,sys.excepthook = sys.excepthook, IP.excepthook save_argv = sys.argv[:] # save it for later restoring - sys.argv.pop(0) # the first arg is 'ipython' + + sys.argv = args try: IP.safe_execfile(args[0], IP.user_ns)