Edit File: clcustomscript.cpython-37.pyc
B �e� � @ s@ d dl mZ d dl mZ d dl mZ d dlZdZdd� ZdZdS ) � )�absolute_import)�division)�print_functionNzAleksandr Shyshatskyc C s� d} y�t j�t�r�ttd��}|�� }W dQ R X x`|D ]X}|�� }|�| �r6|�d�}t |�dkr6|d �� | kr6|d �� }t j�|�r6|S q6W W n t ttfk r� Y nX dS )z� Retrives custom panel script for lvectl from CL config file :return: Script full path or None if script filename not find in config ZCUSTOM_GETPACKAGE_SCRIPT�rN�=� r � ) �os�path�exists�CLSYSCONFIG�open� readlines�strip� startswith�split�len�OSError�IOError� IndexError)Zconfig_param_name�fZ file_lines�lineZ line_partsZscript_name� r ��/builddir/build/BUILDROOT/alt-python27-cllib-3.3.5-1.el8.cloudlinux.x86_64/opt/alt/python37/lib/python3.7/site-packages/clcommon/clcustomscript.py�lvectl_custompanel_script s r z/etc/sysconfig/cloudlinux)Z __future__r r r r � __author__r r r r r r �<module> s