ok

Mini Shell

Direktori : /opt/alt/python37/lib/python3.7/site-packages/clcommon/__pycache__/
Upload File :
Current File : //opt/alt/python37/lib/python3.7/site-packages/clcommon/__pycache__/clcaptain.cpython-37.pyc

B

E!wd��@s~ddlmZddlmZddlmZddlZddlZddlmZmZddl	m
Z
dZddd	�Zddd
�Z
ddd�Zdd�ZdS)�)�absolute_import)�division)�print_functionN)�Popen�PIPE)�ExternalProgramFailedz"/usr/share/python-cllib/cl.captainc
Cs�y
|�Wn�ttfk
r�}z�|jtjkr�t��dkr�tgdd�|D�}t||dkr\dntttdd�}|dkr�|�	�\}}n|�	|�\}}|j
dkr�t|p�dd�|�|f��n�Wdd}~XYnXdS)NrcSsg|]}t|��qS�)�str)�.0�srr�C/opt/alt/python37/lib/python3.7/site-packages/clcommon/clcaptain.py�
<listcomp>szcaptain.<locals>.<listcomp>T)�stdin�stdout�stderr�textzoutput of "%s": %s� )
�OSError�IOError�errnoZEDQUOT�os�geteuid�CAPTAIN_PATHrrZcommunicate�
returncoder�join)�do_try�cmdr�eZcommand�outputZstd_outZstd_errrrr�captains

r��Fcs�t�d�}|rdd�xp��d�D]@}tj��|��tj���r>qt��fdd�d�dd�g�qWn t��fdd�d�dd�g�t�|�dS)	Nr�/cst����S)N)r�mkdirr)�	collector�moderr�<lambda>/�zmkdir.<locals>.<lambda>z-dz-mz%ocst����S)N)rr"r)r$�pathrrr%1r&)r�umask�splitr'r�existsr)r'r$�	recursiver(Zsubdirr)r#r$r'rr"'s
& r"�cs"��fdd�}t|d�g��dS)Nc	s:t�d��&}|���|��t�|���WdQRXdS)N�w)�open�write�flushr�fsync�fileno)�fp)�contentr'rrr6s
zwrite.<locals>.do_tryz-f)r)r'r4rr)r4r'rr/5sr/cs t��fdd�d�d�g�dS)Ncst����S)N)r�symlinkr)�dst�srcrrr%@r&zsymlink.<locals>.<lambda>z-lz-s)r)r7r6r)r6r7rr5?sr5)N)r F)r,)Z
__future__rrrrr�
subprocessrrZclcommon.utilsrrrr"r/r5rrrr�<module>	s




Zerion Mini Shell 1.0