HEX
Server: LiteSpeed
System: Linux ws4.angoweb.net 5.14.0-611.13.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 11 04:57:59 EST 2025 x86_64
User: tswangoe (2287)
PHP: 8.1.33
Disabled: show_source, system, shell_exec, passthru, exec, phpinfo, popen, proc_open
Upload Files
File: //opt/alt/python37/lib/python3.7/site-packages/lvemanager/__pycache__/helpers.cpython-37.pyc
B

�%Ud2�@s<ddlmZddlZddlZddlZd	dd�Zd
dd�ZdS)�)�absolute_importN�FcCs`d|i}|r||d<|r ||d<|r,||d<|r8||d<|rD||d<tt�|��t�d�dS)N�result�context�code�error_id�icon�ignore�)�print�json�dumps�sys�exit)�error_stringrrrr�
ignore_errorsr�r�C/opt/alt/python37/lib/python3.7/site-packages/lvemanager/helpers.py�exit_with_errorsrc	
Cs�d�|�}y2|rtj}ntj}tj|tjtj|dd|d�}Wn6tk
rr}ztd|t|�f�Wdd}~XYnX|��\}}|r�|j	||fS|j	dkr�t|p�d||f�|S)N� T)�stdin�stdout�stderr�	close_fds�text�envz%s. Can not run command: %srzoutput of the command: %s
%s)
�join�
subprocess�PIPE�STDOUT�Popen�OSErrorr�str�communicate�
returncode)	�cmd�env_data�return_full_output�cmd_line�std_err_obj�output�oserr�std_out�std_errrrr�run_commands*
&
r.)rNNNNF)NF)�
__future__rrrrrr.rrrr�<module>s