##// END OF EJS Templates
Do not change sys.argv to ['-c'] on "-c cmd" command line option.
vivainio -
r153:78f0a751
parent child
Show More
@@ -6,7 +6,7 Requires Python 2.3 or newer.
6
6
7 This file contains all the classes and helper functions specific to IPython.
7 This file contains all the classes and helper functions specific to IPython.
8
8
9 $Id: iplib.py 1090 2006-01-27 21:24:05Z vivainio $
9 $Id: iplib.py 1091 2006-01-27 22:19:22Z vivainio $
10 """
10 """
11
11
12 #*****************************************************************************
12 #*****************************************************************************
@@ -1350,7 +1350,7 want to merge them back into the new files.""" % locals()
1350
1350
1351 This emulates Python's -c option."""
1351 This emulates Python's -c option."""
1352
1352
1353 sys.argv = ['-c']
1353 #sys.argv = ['-c']
1354 self.push(self.rc.c)
1354 self.push(self.rc.c)
1355
1355
1356 def embed_mainloop(self,header='',local_ns=None,global_ns=None,stack_depth=0):
1356 def embed_mainloop(self,header='',local_ns=None,global_ns=None,stack_depth=0):
General Comments 0
You need to be logged in to leave comments. Login now