Show More
@@ -7,6 +7,10 b" in './scripts' directory. This file is here (ipython source root directory)" | |||
|
7 | 7 | to facilitate non-root 'zero-installation' (just copy the source tree |
|
8 | 8 | somewhere and run ipython.py) and development. """ |
|
9 | 9 | |
|
10 | if __name__ != "__main__": | |
|
11 | raise RuntimeError('You are trying to import the ipython.py executable. ' | |
|
12 | 'Did you mean to call "import IPython" (case-sensitive) instead?') | |
|
13 | ||
|
10 | 14 | # Ensure that the imported IPython is the local one, not a system-wide one |
|
11 | 15 | import os, sys |
|
12 | 16 | this_dir = os.path.dirname(sys.argv[0]) |
@@ -16,3 +20,4 b' sys.path.insert(0, this_dir)' | |||
|
16 | 20 | execfile(os.path.join( |
|
17 | 21 | this_dir, 'IPython', 'scripts', 'ipython' |
|
18 | 22 | )) |
|
23 |
General Comments 0
You need to be logged in to leave comments.
Login now