ó
^ęWc           @   sč   d  d l  Z  d  d l Z d  d l Z d  d l Z d  d l Z e  j j e  j j e   Z	 d   Z
 d   Z d   Z e d k rä e e j  d k r  e
   n  e j d d k r˝ e   qä e j d d	 k rÚ e   qä e
   n  d S(
   i˙˙˙˙Nc           C   s   d GHt  j d  d  S(   Ns"   Usage: re-vendor.py [clean|vendor]i   (   t   syst   exit(    (    (    sf   /private/var/folders/3n/6h2rwf155rn1m71wwyxn79n80000gn/T/pip-build-IcAT_k/pip/pip/_vendor/re-vendor.pyt   usage	   s    c          C   sq   xN t  j t  D]= }  t  j j t |   } t  j j |  r t j |  q q Wt  j t  j j t d   d  S(   Ns   six.py(	   t   ost   listdirt   heret   patht   joint   isdirt   shutilt   rmtreet   unlink(   t   fnt   dirname(    (    sf   /private/var/folders/3n/6h2rwf155rn1m71wwyxn79n80000gn/T/pip-build-IcAT_k/pip/pip/_vendor/re-vendor.pyt   clean   s
    c          C   sG   t  j d d t d d g  x$ t j d  D] }  t j |   q, Wd  S(   Nt   installs   -ts   -rs
   vendor.txts
   *.egg-info(   t   pipt   mainR   t   globR	   R
   (   R   (    (    sf   /private/var/folders/3n/6h2rwf155rn1m71wwyxn79n80000gn/T/pip-build-IcAT_k/pip/pip/_vendor/re-vendor.pyt   vendor   s    t   __main__i   i   R   R   (   R   R    R   R   R	   R   t   abspathR   t   __file__R   R   R   R   t   __name__t   lent   argv(    (    (    sf   /private/var/folders/3n/6h2rwf155rn1m71wwyxn79n80000gn/T/pip-build-IcAT_k/pip/pip/_vendor/re-vendor.pyt   <module>   s    			


