Show More
@@ -5,7 +5,7 b' We define a special input line filter to allow typing lines which begin with' | |||
|
5 | 5 | '~', '/' or '.'. If one of those strings is encountered, it is automatically |
|
6 | 6 | executed. |
|
7 | 7 | |
|
8 |
$Id: InterpreterExec.py 10 |
|
|
8 | $Id: InterpreterExec.py 1041 2006-01-21 09:29:14Z vivainio $""" | |
|
9 | 9 | |
|
10 | 10 | #***************************************************************************** |
|
11 | 11 | # Copyright (C) 2004 W.J. van der Laan <gnufnork@hetdigitalegat.nl> |
@@ -244,18 +244,18 b" __IPYTHON__.default_option('cd','-q')" | |||
|
244 | 244 | |
|
245 | 245 | # This is redundant, ipy_user_conf.py will determine this |
|
246 | 246 | # Load all of $PATH as aliases |
|
247 |
|
|
|
247 | if os.name == 'posix': | |
|
248 | 248 | # # %rehash is very fast, but it doesn't check for executability, it simply |
|
249 | 249 | # # dumps everything in $PATH as an alias. Use rehashx if you want more |
|
250 | 250 | # # checks. |
|
251 |
|
|
|
252 |
|
|
|
251 | __IPYTHON__.magic_rehash() | |
|
252 | else: | |
|
253 | 253 | # # Windows users: the list of extensions considered executable is read from |
|
254 | 254 | # # the environment variable 'pathext'. If this is undefined, IPython |
|
255 | 255 | # # defaults to EXE, COM and BAT. |
|
256 | 256 | # # %rehashx is the one which does extension analysis, at the cost of |
|
257 | 257 | # # being much slower than %rehash. |
|
258 |
|
|
|
258 | __IPYTHON__.magic_rehashx() | |
|
259 | 259 | |
|
260 | 260 | # Remove %sc,%sx if present as aliases |
|
261 | 261 | __IPYTHON__.magic_unalias('sc') |
@@ -40,10 +40,11 b" ip.magic('alias d ls -F --color=auto')" | |||
|
40 | 40 | |
|
41 | 41 | # Make available all system commands through "rehashing" immediately. |
|
42 | 42 | # You can comment these lines out to speed up startup on very slow |
|
43 | # machines, and to conserve a bit of memory. | |
|
44 | ||
|
45 | if os.name=='posix': | |
|
46 | ip.magic('rehash') | |
|
47 | else: | |
|
48 | #slightly slower, but better results esp. with Windows | |
|
49 | ip.magic('rehashx') | |
|
43 | # machines, and to conserve a bit of memory. Note that pysh profile does this | |
|
44 | # automatically | |
|
45 | ||
|
46 | #if os.name=='posix': | |
|
47 | # ip.magic('rehash') | |
|
48 | #else: | |
|
49 | # #slightly slower, but better results esp. with Windows | |
|
50 | # ip.magic('rehashx') |
@@ -6,7 +6,7 b' Requires Python 2.1 or better.' | |||
|
6 | 6 | |
|
7 | 7 | This file contains the main make_IPython() starter function. |
|
8 | 8 | |
|
9 |
$Id: ipmaker.py 10 |
|
|
9 | $Id: ipmaker.py 1041 2006-01-21 09:29:14Z vivainio $""" | |
|
10 | 10 | |
|
11 | 11 | #***************************************************************************** |
|
12 | 12 | # Copyright (C) 2001-2006 Fernando Perez. <fperez@colorado.edu> |
@@ -608,7 +608,8 b" object? -> Details about 'object'. ?object also works, ?? prints more." | |||
|
608 | 608 | import ipy_user_conf |
|
609 | 609 | |
|
610 | 610 | except ImportError: |
|
611 | IP.InteractiveTB() | |
|
611 | pass | |
|
612 | #IP.InteractiveTB() XXX uncomment in a later release | |
|
612 | 613 | |
|
613 | 614 | # release stdout and stderr and save config log into a global summary |
|
614 | 615 | msg.config.release_all() |
General Comments 0
You need to be logged in to leave comments.
Login now