ok

Mini Shell

Direktori : /opt/alt/python37/lib/python3.7/site-packages/clcommon/lib/__pycache__/
Upload File :
Current File : //opt/alt/python37/lib/python3.7/site-packages/clcommon/lib/__pycache__/config.cpython-37.pyc

B

E!wdf�@s"ddlZddlZGdd�d�ZdS)�Nc@s.eZdZdZefdd�Zdd�Zd	dd�ZdS)
�Configz!/etc/sysconfig/endservertools.ymlcCs
||_dS)N)�_config_path)�selfZconfig�r�D/opt/alt/python37/lib/python3.7/site-packages/clcommon/lib/config.py�__init__szConfig.__init__c	CsVtj�|j�sdSy(t|j��}t�|tj�}WdQRXWntjk
rPdSX|S)N)	�os�path�existsr�open�yaml�loadZ
SafeLoaderZ	YAMLError)r�f�datarrr�_loadszConfig._loadNcCs |��}|dkr|S|�||�S)N)r�get)rZ	parameter�defaultrrrr�	get_value szConfig.get_value)N)�__name__�
__module__�__qualname__ZCONFIG_PATHrrrrrrrrs
r)rrrrrrr�<module>s

Zerion Mini Shell 1.0