Ńň
ÎŃAHc           @   s   d  Z  d d k Z e i i   Z d d k Z d d k Z d d k Td d  Z	 e i
 d e	  d d  Z e i
 d e  d d	  Z e i
 d
 e  d S(   sţ    Legacy stuff

Various stuff that are there for historical / familiarity reasons.

This is automatically imported by default profile, though not other profiles
(e.g. 'sh' profile).

Stuff that is considered obsolete / redundant is gradually moved here.

i˙˙˙˙N(   t   *t    c         C   s   t  t i i t i i d d  i t i   } |  i i	 } x8 | D]0 } x' t i
 |  D] } d | f | | <qY WqC W|  i i   |  i i   d S(   s  Update the alias table with all entries in $PATH.

    This version does no checks on execute permissions or whether the
    contents of $PATH are truly files (instead of directories or something
    else).  For such a safer (but slower) version, use %rehashx.t   PATHR   i    N(   t   filtert   ost   patht   isdirt   environt   gett   splitt   pathsept   shellt   alias_tablet   listdirt   alias_table_validatet   init_auto_alias(   t   selft   parameter_sR   R   t   pdirt   ff(    (    sU   /u/d/b/dbachman/web/work/lib/python2.3/site-packages/IPython/Extensions/ipy_legacy.pyt   magic_rehash   s    0  t   rehashc         C   s   t  |  i _ d S(   s/   Exit IPython without confirmation (like %Exit).N(   t   TrueR   t   exit_now(   R   R   (    (    sU   /u/d/b/dbachman/web/work/lib/python2.3/site-packages/IPython/Extensions/ipy_legacy.pyt
   magic_Quit1   s    t   Quitc         B   s   d | |  i  i Ud S(   s(   Just a short alias for Python's 'print'.s   print N(   R   t   user_ns(   R   R   (    (    sU   /u/d/b/dbachman/web/work/lib/python2.3/site-packages/IPython/Extensions/ipy_legacy.pyt   magic_p:   s    t   p(   t   __doc__t   IPython.ipapit   IPythont   ipapiR   t   ipR   t   syst   IPython.genutilsR   t   expose_magicR   R   (    (    (    sU   /u/d/b/dbachman/web/work/lib/python2.3/site-packages/IPython/Extensions/ipy_legacy.pyt   <module>
   s   
