Show More
@@ -48,6 +48,9 b' from IPython.utils.io import temp_pyfile' | |||
|
48 | 48 | |
|
49 | 49 | from . import decorators as dec |
|
50 | 50 | |
|
51 | # Set to True to test ipython.py in the local directory. | |
|
52 | LOCALTEST = False | |
|
53 | ||
|
51 | 54 | #----------------------------------------------------------------------------- |
|
52 | 55 | # Globals |
|
53 | 56 | #----------------------------------------------------------------------------- |
@@ -200,7 +203,10 b' def ipexec(fname, options=None):' | |||
|
200 | 203 | _ip = get_ipython() |
|
201 | 204 | test_dir = os.path.dirname(__file__) |
|
202 | 205 | |
|
203 | ipython_cmd = find_cmd('ipython') | |
|
206 | if LOCALTEST: | |
|
207 | ipython_cmd = os.path.join(os.getcwd(),'ipython.py') | |
|
208 | else: | |
|
209 | ipython_cmd = find_cmd('ipython') | |
|
204 | 210 | # Absolute path for filename |
|
205 | 211 | full_fname = os.path.join(test_dir, fname) |
|
206 | 212 | full_cmd = '%s %s %s' % (ipython_cmd, cmdargs, full_fname) |
General Comments 0
You need to be logged in to leave comments.
Login now