##// END OF EJS Templates
getoutput wants a string, not a command list
MinRK -
Show More
@@ -19,6 +19,7 b' from __future__ import absolute_import'
19 #-----------------------------------------------------------------------------
19 #-----------------------------------------------------------------------------
20
20
21 import os
21 import os
22 import pipes
22 import re
23 import re
23 import sys
24 import sys
24 import tempfile
25 import tempfile
@@ -157,7 +158,7 b' def default_config():'
157 def ipexec(fname, options=None):
158 def ipexec(fname, options=None):
158 """Utility to call 'ipython filename'.
159 """Utility to call 'ipython filename'.
159
160
160 Starts IPython witha minimal and safe configuration to make startup as fast
161 Starts IPython with a minimal and safe configuration to make startup as fast
161 as possible.
162 as possible.
162
163
163 Note that this starts IPython in a subprocess!
164 Note that this starts IPython in a subprocess!
@@ -186,8 +187,8 b' def ipexec(fname, options=None):'
186
187
187 _ip = get_ipython()
188 _ip = get_ipython()
188 test_dir = os.path.dirname(__file__)
189 test_dir = os.path.dirname(__file__)
189
190
190 ipython_cmd = [sys.executable, '-m', 'IPython']
191 ipython_cmd = pipes.quote(sys.executable) + " -m IPython"
191 # Absolute path for filename
192 # Absolute path for filename
192 full_fname = os.path.join(test_dir, fname)
193 full_fname = os.path.join(test_dir, fname)
193 full_cmd = '%s %s %s' % (ipython_cmd, cmdargs, full_fname)
194 full_cmd = '%s %s %s' % (ipython_cmd, cmdargs, full_fname)
General Comments 0
You need to be logged in to leave comments. Login now