%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /snap/core20/2599/usr/share/python3/debpython/__pycache__/
Upload File :
Create Path :
Current File : //snap/core20/2599/usr/share/python3/debpython/__pycache__/__init__.cpython-38.pyc

U

�zk^U�@s�zddlmZWnek
r(dZYnXddlZddlZddlmZmZddlmZe�	e
�Ze�d�Z
Gdd�d�Zd
dd	�ZdS)�)�datetimeN)�PIPE�Popen)�dumpsz4.*?/usr/lib/python(\d(?:.\d+)?)/(site|dist)-packagesc@seZdZdd�Zdd�ZdS)�memoizecCs||_i|_dS�N)�func�cache)�selfr�r�(/usr/share/python3/debpython/__init__.py�__init__szmemoize.__init__cOs2t||f�}||jkr(|j||�|j|<|j|Sr)rr	r)r
�args�kwargs�keyrrr�__call__s
zmemoize.__call__N)�__name__�
__module__�__qualname__r
rrrrrrsrc	
Cs�d||d�}d}|dkrnv|dkr2|jttd�n^|r�t|t�rNd}t|d�}trj|�d�t���	���|�d�|��|�
�|j||d�t�d	|�t
|f|��J}|��\}}|o�|��t|j|o�t|d
�|o�t|d
�d�W5QR�SQRXdS)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
    T)�shell�cwd�envFN)�stdout�stderr�az
# command executed on {}z
$ {}
zinvoking: %szutf-8)�
returncoderr)�updater�
isinstance�str�openr�write�formatZnowZ	isoformat�flush�log�debugrZcommunicate�close�dictr)	ZcommandrrZ
log_outputrr%Zprocessrrrrr�executes.


�r')NNN)r�ImportErrorZlogging�re�
subprocessrr�picklerZ	getLoggerrr#�compileZ
PUBLIC_DIR_RErr'rrrr�<module>s




Zerion Mini Shell 1.0