ok
Direktori : /proc/self/root/proc/thread-self/root/proc/self/root/usr/lib64/python2.7/Tools/scripts/ |
Current File : //proc/self/root/proc/thread-self/root/proc/self/root/usr/lib64/python2.7/Tools/scripts/mkreal.pyo |
� iцdc @ so d d l Z d d l Z d d l Te j j Z d Z d Z d � Z d � Z d � Z e d k rk e � n d S( i����N( t *s mkreal errori i c C s� t j | � } t | t � } t j | � } t | d � } t j | � t | d � } x) | j t � } | su Pn | j | � q\ ~ t j | | � d S( Nt rt w( t ost statt S_IMODEt ST_MODEt readlinkt opent unlinkt readt BUFSIZEt writet chmod( t namet stt modet linktot f_int f_outt buf( ( s, /usr/lib64/python2.7/Tools/scripts/mkreal.pyt mkrealfile s c C s� t j | � } t | t � } t j | � } t j | � } t j | � t j | | � t j | | � t t j | � } xK | D]C } | t j t j f k r� t j t | | � t | | � � q� q� Wd S( N( R R R R R t listdirR t mkdirR t joint pardirt curdirt symlink( R R R R t filest filename( ( s, /usr/lib64/python2.7/Tools/scripts/mkreal.pyt mkrealdir s c C s� t j t _ t j j t j d � } | d k r: d } n t j d } | sj d G| Gd GHt j d � n d } xg | D]_ } t j j | � s� | d G| d Gd GHd } qw t j j | � r� t | � qw t | � qw Wt j | � d S( Ni s -ct mkreali s usage:s path ...i t :s not a symlink( t syst stderrt stdoutR t patht basenamet argvt exitt islinkt isdirR R ( t prognamet argst statusR ( ( s, /usr/lib64/python2.7/Tools/scripts/mkreal.pyt main- s"