Show More
@@ -6,7 +6,7 b' 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 18 |
|
9 | $Id: iplib.py 1874 2006-11-03 08:17:34Z fptest $ | |
10 | """ |
|
10 | """ | |
11 |
|
11 | |||
12 | #***************************************************************************** |
|
12 | #***************************************************************************** | |
@@ -2381,11 +2381,6 b' want to merge them back into the new files.""" % locals()' | |||||
2381 | def safe_execfile(self,fname,*where,**kw): |
|
2381 | def safe_execfile(self,fname,*where,**kw): | |
2382 | fname = os.path.expanduser(fname) |
|
2382 | fname = os.path.expanduser(fname) | |
2383 |
|
2383 | |||
2384 | # find things also in current directory |
|
|||
2385 | dname = os.path.dirname(fname) |
|
|||
2386 | if not sys.path.count(dname): |
|
|||
2387 | sys.path.append(dname) |
|
|||
2388 |
|
||||
2389 | try: |
|
2384 | try: | |
2390 | xfile = open(fname) |
|
2385 | xfile = open(fname) | |
2391 | except: |
|
2386 | except: |
@@ -1,5 +1,9 b'' | |||||
1 | 2006-11-03 Fernando Perez <Fernando.Perez@colorado.edu> |
|
1 | 2006-11-03 Fernando Perez <Fernando.Perez@colorado.edu> | |
2 |
|
2 | |||
|
3 | * scripts/ipython: remove the very first entry in sys.path which | |||
|
4 | Python auto-inserts for scripts, so that sys.path under IPython is | |||
|
5 | as similar as possible to that under plain Python. | |||
|
6 | ||||
3 | * IPython/completer.py (IPCompleter.file_matches): Fix |
|
7 | * IPython/completer.py (IPCompleter.file_matches): Fix | |
4 | tab-completion so that quotes are not closed unless the completion |
|
8 | tab-completion so that quotes are not closed unless the completion | |
5 | is unambiguous. After a request by Stefan. Minor cleanups in |
|
9 | is unambiguous. After a request by Stefan. Minor cleanups in |
@@ -7,6 +7,12 b" in './scripts' directory. This file is here (ipython source root directory)" | |||||
7 | to facilitate non-root 'zero-installation' (just copy the source tree |
|
7 | to facilitate non-root 'zero-installation' (just copy the source tree | |
8 | somewhere and run ipython.py) and development. """ |
|
8 | somewhere and run ipython.py) and development. """ | |
9 |
|
9 | |||
|
10 | # Start by cleaning up sys.path: Python automatically inserts the script's | |||
|
11 | # base directory into sys.path, at the front. This can lead to unpleasant | |||
|
12 | # surprises. | |||
|
13 | import sys | |||
|
14 | sys.path.pop(0) | |||
|
15 | ||||
10 | import IPython |
|
16 | import IPython | |
11 |
|
17 | |||
12 | IPython.Shell.start().mainloop() |
|
18 | IPython.Shell.start().mainloop() |
@@ -23,6 +23,11 b' this mode, there is no way to pass IPython any command-line options, as those' | |||||
23 | are trapped first by Python itself. |
|
23 | are trapped first by Python itself. | |
24 | """ |
|
24 | """ | |
25 |
|
25 | |||
26 | import IPython |
|
26 | # Start by cleaning up sys.path: Python automatically inserts the script's | |
|
27 | # base directory into sys.path, at the front. This can lead to unpleasant | |||
|
28 | # surprises. | |||
|
29 | import sys | |||
|
30 | sys.path.pop(0) | |||
27 |
|
31 | |||
|
32 | import IPython | |||
28 | IPython.Shell.start().mainloop() |
|
33 | IPython.Shell.start().mainloop() |
General Comments 0
You need to be logged in to leave comments.
Login now