ķ
čžbc        #   @   so  d  Z  d d l Z d d l Z d d l Td d l m Z d d l m Z m Z m Z m	 Z	 m
 Z
 m Z m Z m 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 d0   Z d1   Z d2   Z d3   Z d4   Z e Z d5   Z d6   Z d7   Z  e  Z! e" Z# d S(8   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   _unicode(   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   |  j  d d  j   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.7/os2emxpath.pyR
   $   s    c         G   sg   |  } xZ | D]R } t  |  r( | } q | d k sD | d d k rQ | | } 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.7/os2emxpath.pyR   -   s    	c         C   sÃ   |  d d !d k r d |  f S|  d d !} | d	 k sB | d
 k rš t  |   } | j d d  } | d k rv d |  f S| j d | d  } | d k r§ t |   } n  |  |  |  | f Sd |  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 a 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.7/os2emxpath.pyR   ;   s    

c         C   s   t  |   d S(   s)   Returns the final component of a pathnamei   (   R   (   R.   (    (    s    /usr/lib/python2.7/os2emxpath.pyR   Y   s    c         C   s   t  |   d S(   s-   Returns the directory component of a pathnamei    (   R   (   R.   (    (    s    /usr/lib/python2.7/os2emxpath.pyR   `   s    c         C   sR   t  |   \ } } | r" | d k St |   d } t |  d k oQ | d d k 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   R3   (   R/   t   unct   restR.   (    (    s    /usr/lib/python2.7/os2emxpath.pyR   n   s
    
c         C   sY  |  j  d d  }  t |   \ } }  x( |  d  d k rN | d } |  d }  q' W|  j d  } d } xÃ | t |  k  r)| | d k r | | =qg | | d k râ | d k râ | | d d k râ | | d | d 5| d } qg | | d k r| d k r| | d d k r| | =qg | d } qg W| rH| rH| j d  n  | d j |  S(	   s0   Normalize path, eliminating double slashes, etc.s   \R&   i   i    R%   s   ..R,   (   R,   s   ..(   R)   R   R   R3   t   appendR   (   R/   t   prefixt   compst   i(    (    s    /usr/lib/python2.7/os2emxpath.pyR   y   s&    

00
c         C   sR   t  |   sH t |  t  r* t j   } n t j   } t | |   }  n  t |   S(   s%   Return the absolute version of a path(   R   t
   isinstanceR   t   ost   getcwdut   getcwdR   R   (   R/   t   cwd(    (    s    /usr/lib/python2.7/os2emxpath.pyR      s    ($   t   __doc__R>   t   statt   genericpathR   t   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.7/os2emxpath.pyt   <module>   s<   
:									