Ñò
mÈKc        '   @   s_  d  Z  d d k Z d d k Z d d k Td d k l Z l Z l Z l Z l	 Z	 l
 Z
 l Z l Z d d d d d	 d
 d d d d d d d d d d d d d d d d d d d d d d  d! d" d# d$ d% d& d' g# Z d( Z d) Z d( Z d* Z d+ Z d, Z d- Z d. Z d/ „  Z d0 „  Z d1 „  Z d2 „  Z d3 „  Z e Z d4 „  Z d5 „  Z d6 „  Z e Z  e! Z" d S(7   sŒ   Common pathname manipulations, OS/2 EMX version.

Instead of importing this module directly, import os and refer to this
module as os.path.
iÿÿÿÿN(   t   *(   t
   expandusert
   expandvarst   isabst   islinkt
   splitdrivet   splitextt   splitt   walkt   normcaseR   t   joinR   R   R   t   basenamet   dirnamet   commonprefixt   getsizet   getmtimet   getatimet   getctimeR   t   existst   lexistst   isdirt   isfilet   ismountR   R   R   t   normpatht   abspatht   splitunct   curdirt   pardirt   sept   pathsept   defpatht   altsept   extsept   devnullt   realpatht   supports_unicode_filenamest   .s   ..t   /s   \t   ;s   .;C:\bint   nulc         C   s   |  i  d d ƒ i ƒ  S(   sZ   Normalize case of pathname.

    Makes all characters lowercase and all altseps into seps.s   \R%   (   t   replacet   lower(   t   s(    (    s    /usr/lib/python2.6/os2emxpath.pyR	   #   s    c         G   sl   |  } x_ | D]W } t  | ƒ o
 | } q | d j p | d d j o | | } q | d | } q W| S(   s=   Join two or more pathname components, inserting sep as neededt    iÿÿÿÿs   /\:R%   (   R   (   t   at   pt   patht   b(    (    s    /usr/lib/python2.6/os2emxpath.pyR
   ,   s     
c         C   sÌ   |  d d !d j o d |  f S|  d d !} | d	 j p | d
 j o| t  |  ƒ } | i d d ƒ } | d j o d |  f S| i d | d ƒ } | d j o t |  ƒ } n |  |  |  | f Sd |  f S(   s@  Split a pathname into UNC mount point and relative path specifiers.

    Return a 2-tuple (unc, rest); either part may be empty.
    If unc is not empty, it has the form '//host/mount' (or similar
    using backslashes).  unc+rest is always the input path.
    Paths containing drive letters never have an UNC part.
    i   i   t   :R+   i    R%   s   \iÿÿÿÿs   //s   \\(   R	   t   findt   len(   R-   t   firstTwot   normpt   index(    (    s    /usr/lib/python2.6/os2emxpath.pyR   :   s    c         C   s   t  |  ƒ d S(   s)   Returns the final component of a pathnamei   (   R   (   R-   (    (    s    /usr/lib/python2.6/os2emxpath.pyR   X   s    c         C   s   t  |  ƒ d S(   s-   Returns the directory component of a pathnamei    (   R   (   R-   (    (    s    /usr/lib/python2.6/os2emxpath.pyR   _   s    c         C   sU   t  |  ƒ \ } } | o | d j St |  ƒ d } t | ƒ d j o | d d j S(   s?   Test whether a path is a mount point (defined as root of drive)R+   R%   s   \i   i    s   /\(   R+   R%   s   \(   R   R   R2   (   R.   t   unct   restR-   (    (    s    /usr/lib/python2.6/os2emxpath.pyR   m   s
    c         C   sj  |  i  d d ƒ }  t |  ƒ \ } }  x* |  d  d j o | d } |  d }  q' W|  i d ƒ } d } xÏ | t | ƒ j  o» | | d j o | | =qi | | d j oB | d j o5 | | d d j o  | | d | d 5| d } qi | | d j o- | d j o  | | d d j o | | =qi | d } qi W| o | o | i d ƒ n | d i | ƒ S(	   s0   Normalize path, eliminating double slashes, etc.s   \R%   i   i    R$   s   ..R+   (   R+   s   ..(   R(   R   R   R2   t   appendR
   (   R.   t   prefixt   compst   i(    (    s    /usr/lib/python2.6/os2emxpath.pyR   x   s*     
 33c         C   sV   t  |  ƒ p? t |  t ƒ o t i ƒ  } n t i ƒ  } t | |  ƒ }  n t |  ƒ S(   s%   Return the absolute version of a path(   R   t
   isinstancet   unicodet   ost   getcwdut   getcwdR
   R   (   R.   t   cwd(    (    s    /usr/lib/python2.6/os2emxpath.pyR   ’   s    (#   t   __doc__R>   t   statt   genericpatht   ntpathR   R   R   R   R   R   R   R   t   __all__R   R   R    R   R   R   R   R!   R	   R
   R   R   R   R   R   R   R   R   R"   t   FalseR#   (    (    (    s    /usr/lib/python2.6/os2emxpath.pyt   <module>   s:   
:									