;
Êâ"Ic            &   @   sV  d  Z  d d l Z d d l Z d d l Td d l 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& g" Z d' 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 e Z d3 „  Z d4 „  Z d5 „  Z e Z d6 Z! d S(7   uŒ   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(   u   *(   u
   expanduseru
   expandvarsu   isabsu   islinku
   splitdriveu   splitextu   splitu   normcaseu   isabsu   joinu
   splitdriveu   splitu   splitextu   basenameu   dirnameu   commonprefixu   getsizeu   getmtimeu   getatimeu   getctimeu   islinku   existsu   lexistsu   isdiru   isfileu   ismountu
   expanduseru
   expandvarsu   normpathu   abspathu   splituncu   curdiru   pardiru   sepu   pathsepu   defpathu   altsepu   extsepu   devnullu   realpathu   supports_unicode_filenamesu   .u   ..u   /u   \u   ;u   .;C:\binu   nulc             C   s   |  j  d d ƒ j ƒ  S(   uZ   Normalize case of pathname.

    Makes all characters lowercase and all altseps into seps.u   \u   /(   u   replaceu   lower(   u   s(    (    u'   /mit/python/lib/python3.0/os2emxpath.pyu   normcase#   s    c             G   sr   |  } xe | D]] } t  | ƒ o
 | } q | d k p | d d … d k o | | } q | d | } q W| S(   u=   Join two or more pathname components, inserting sep as neededu    iÿÿÿÿNu   /\:u   /(   u   isabs(   u   au   pu   pathu   b(    (    u'   /mit/python/lib/python3.0/os2emxpath.pyu   join,   s     
$c             C   sÞ   |  d d … d k o d |  f S|  d d … } | d
 k p | d k oˆ t  |  ƒ } | j d d ƒ } | d k o d |  f S| j d | d ƒ } | d k o t |  ƒ } n |  d	 | … |  | d	 … f Sd |  f S(   u@  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   u   :u    i    u   /u   \iÿÿÿÿNu   //u   \\(   u   normcaseu   findu   len(   u   pu   firstTwou   normpu   index(    (    u'   /mit/python/lib/python3.0/os2emxpath.pyu   splitunc:   s    c             C   s   t  |  ƒ d S(   u)   Returns the final component of a pathnamei   (   u   split(   u   p(    (    u'   /mit/python/lib/python3.0/os2emxpath.pyu   basenameX   s    c             C   s   t  |  ƒ d S(   u-   Returns the directory component of a pathnamei    (   u   split(   u   p(    (    u'   /mit/python/lib/python3.0/os2emxpath.pyu   dirname_   s    c             C   sU   t  |  ƒ \ } } | o | d k St |  ƒ d } t | ƒ d k o | d d k S(   u?   Test whether a path is a mount point (defined as root of drive)u    u   /u   \i   i    u   /\(   u    u   /u   \(   u   splituncu
   splitdriveu   len(   u   pathu   uncu   restu   p(    (    u'   /mit/python/lib/python3.0/os2emxpath.pyu   ismountm   s
    c             C   sy  |  j  d d ƒ }  t |  ƒ \ } }  x6 |  d d … d k o | d } |  d d … }  q' W|  j d ƒ } d } xÒ | t | ƒ k  o¾ | | d k o | | =qu | | d k oE | d k o8 | | d d	 k o# | | d | d … =| d } qu | | d k o- | d k o  | | d d k o | | =qu | d } qu W| o | o | j d ƒ n | d j | ƒ S(
   u0   Normalize path, eliminating double slashes, etc.u   \u   /Ni   i    u   .u   ..u    (   u    u   ..(   u   replaceu
   splitdriveu   splitu   lenu   appendu   join(   u   pathu   prefixu   compsu   i(    (    u'   /mit/python/lib/python3.0/os2emxpath.pyu   normpathx   s*     
 33c             C   s0   t  |  ƒ p t t j ƒ  |  ƒ }  n t |  ƒ S(   u%   Return the absolute version of a path(   u   isabsu   joinu   osu   getcwdu   normpath(   u   path(    (    u'   /mit/python/lib/python3.0/os2emxpath.pyu   abspath’   s    F("   u   __doc__u   osu   statu   genericpathu   ntpathu
   expanduseru
   expandvarsu   isabsu   islinku
   splitdriveu   splitextu   splitu   __all__u   curdiru   pardiru   extsepu   sepu   altsepu   pathsepu   defpathu   devnullu   normcaseu   joinu   splituncu   basenameu   dirnameu   existsu   lexistsu   ismountu   normpathu   abspathu   realpathu   Falseu   supports_unicode_filenames(    (    (    u'   /mit/python/lib/python3.0/os2emxpath.pyu   <module>   s:   
4									