File: //opt/alt/python37/lib/python3.7/site-packages/vendors_api/__pycache__/config.cpython-37.pyc
B
�+3fu�I��
@ s� d Z ddlmZ ddlmZ ddlmZ ddlZddlZddlmZ ddl m
Z
ddlmZ d Z
dadaG d
d� de
dd
dddddddg��Zdd� Zdd� Zdd� ZdS )z8
Wrapper over integration config which provides
typing.
� )�absolute_import)�division)�print_functionN)�ConfigParser)�
namedtuple)�NotImplementedByVendorz!/opt/cpvendor/etc/integration.inic s e Zd ZdZ� fdd�Z� ZS )�
ScriptsCMDzg
Wrapper over namedtuple that raises exception
when we access property that has None value
c s$ t t| ��|�}|dkr t|��|S )za
Raise error if command is not implemented,
but we try to get it in code
N)�superr �__getattribute__r )�self�item�obj)� __class__� ��/builddir/build/BUILDROOT/alt-python27-cllib-3.4.1-1.el9.cloudlinux.x86_64/opt/alt/python37/lib/python3.7/site-packages/vendors_api/config.pyr
* s zScriptsCMD.__getattribute__)�__name__�
__module__�__qualname__�__doc__r
�
__classcell__r r )r r r s
r ZVendorScriptsPath�
panel_info�db_info�packages�users�domains� resellers�admins�phpc C s | dkrdS t t�| ��S )zm
Taking command line as input, convert it into
subprocess args
If cmd is None -> return None
N)�tuple�shlex�split)�cmdr r r �_split_path_or_none5 s r"