[IPython-dev] Re: [IPython-user] Re: Fairly deep changes in CVS, testers welcome

Fernando Perez Fernando.Perez at colorado.edu
Mon Jun 21 11:55:20 EDT 2004


Thorsten Kampe wrote:
> Under Cygwin:

> 1>>> rehash
> ---------------------------------------------------------------------------
> OSError                                   Traceback (most recent call last)
> 
> /home/thorsten/<console> 
> 
> /usr/lib/python2.3/site-packages/IPython/Magic.py in magic_rehash(self=<IPython.iplib.InteractiveShell instance>, parameter_s='')
>    1755         alias_table = self.shell.alias_table
>    1756         for pdir in path:
> -> 1757             for ff in os.listdir(pdir):
>         ff = 'w9xpopen.exe', global os = <module 'os' from '/usr/lib/python2.3/os.pyc'>, global listdir = undefined, pdir = 'Z'
>    1758                 # each entry in the alias table must be
> (N,name), where
>    1759                 # N is the number of positional arguments of
> the alias.
> 
> OSError: [Errno 2] No such file or directory: 'Z'

Thanks, fixed in CVS.  Like tcsh's rehash, it now just ignores items in $PATH 
which aren't directoires.

Cheers,

f




More information about the IPython-dev mailing list