Show More
@@ -48,6 +48,9 b' from IPython.utils.io import temp_pyfile' | |||||
48 |
|
48 | |||
49 | from . import decorators as dec |
|
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 | # Globals |
|
55 | # Globals | |
53 | #----------------------------------------------------------------------------- |
|
56 | #----------------------------------------------------------------------------- | |
@@ -200,6 +203,9 b' def ipexec(fname, options=None):' | |||||
200 | _ip = get_ipython() |
|
203 | _ip = get_ipython() | |
201 | test_dir = os.path.dirname(__file__) |
|
204 | test_dir = os.path.dirname(__file__) | |
202 |
|
205 | |||
|
206 | if LOCALTEST: | |||
|
207 | ipython_cmd = os.path.join(os.getcwd(),'ipython.py') | |||
|
208 | else: | |||
203 | ipython_cmd = find_cmd('ipython') |
|
209 | ipython_cmd = find_cmd('ipython') | |
204 | # Absolute path for filename |
|
210 | # Absolute path for filename | |
205 | full_fname = os.path.join(test_dir, fname) |
|
211 | full_fname = os.path.join(test_dir, fname) |
General Comments 0
You need to be logged in to leave comments.
Login now