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