}CeBddlmZddlmZddlmZddlZdZdZdZdS))absolute_import)division)print_functionNz/var/cpanel/cpanel.configc@ t|}|}n#ttf$rYdSwxYw|D]]}|d|zrC||ddcS^dS)z Get param from config file :param path: Path to config file :type path: str :param param: Key for param in config file :type param: str F%s==N)open readlinesOSErrorIOError startswithclosestripsplit)pathparamfddatalines /builddir/build/BUILDROOT/alt-python27-cllib-3.3.7-2.el7.cloudlinux.x86_64/opt/cloudlinux/venv/lib/python3.11/site-packages/clcommon/clconfig.py get_paramrs $ZZ||~~ W uu00 ??55= ) ) 0 HHJJJJJLL&&s++Q/ / / / 0 4s #&;;c|d|d}tj|s?t|d5}||dddn #1swxYwYdSt|5}|}dddn #1swxYwYt |D]u\}}|d|zrX|||<t|d5}|d|dddn #1swxYwYdSvt|d5}||ddddS#1swxYwYdS)a Replaces config file with path to config file with line param=value :param path: Path to config file :type path: str :param param: Key for param in config file :type key: str :param value: Value for param in config file :type value: str r wNra) osrexistsr writer enumeraterjoin)rrvaluenew_linefrirs r replace_paramr'#sS"EE555)H 7>>$   $__  GGH                   dq{{}}T??4 ??55= ) ) DGdC 'A &&& ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' FF   dCA sGAA!A6BBB#)DD D 7EE!E) __future__rrrrCPANEL_CONFIG_PATHrr'rr,st'&&&&&%%%%%% 0(r+