3
À<×eç ã @ s> d dl Z d dlZddlmZ d dlmZ G dd„ dejƒZdS )é Né )Úbase)Úcommandsc s, e Zd ZdZ‡ fdd„Z‡ fdd„Z‡ ZS )Úexecutez0
Executes process and substitutes its output.
c s t t| ƒjdddƒ d S )NÚexecr r )Úsuperr Ú__init__)Úself)Ú __class__© ú#/usr/lib/python3.6/function_exec.pyr
s zexecute.__init__c s4 t t| ƒj|ƒsd S | jj|ƒ\}}|dkr0|S d S )Nr )r r Z_cmd)r ÚargsÚretÚout)r
r r r s zexecute.execute)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r r Ú
__classcell__r r )r
r r s r ) ÚosZ
tuned.logsZtunedÚ r Ztuned.utils.commandsr ZFunctionr r r r r Ú