mò
Î©ìPc           @   sô   d  Z  d k Z d k Z d k Z d Z d „  Z d „  Z e d j oª e i e i d d d ƒ \ Z	 Z
 e e
 ƒ d j  o e ƒ  n x% e	 D] Z e d	 j o
 d Z q q We
 d Z e i i e ƒ p e ƒ  n e i i e e d ƒ n d S(
   s   Walks path given on the command line for .pyc and .pyo files, changing
the mtime in the header to 0, so it will match the .py file on the cramfsNi    c           C   s!   d t  i d GHt  i d ƒ d  S(   Ns   usage: %s /path/to/walk/and/fixi    i   (   t   syst   argvt   exit(    (    (    t%   /usr/lib/anaconda-runtime/fixmtime.pyt   usage   s    c         C   s‡   x€ | D]x } | i d ƒ p | i d ƒ p q n t i i | | f ƒ } t | d ƒ } | i
 d ƒ | i d ƒ | i ƒ  q Wd  S(   Ns   .pycs   .pyos   r+i   t       (   t   filest   filent   endswitht   ost   sept   joint   dt   patht   opent   ft   seekt   writet   close(   t   argR   R   R   R   R   (    (    R   t   visit   s      t   __main__i   t    t   debugs   --debug(   t   __doc__R	   R    t   getoptR   R   R   t   __name__R   t   argst   extrat   lenR   t   dirR   t   isdirt   walkt   None(
   R   R   R   R   R    R   R   R   R	   R   (    (    R   t   ?   s$   					" 
