IQgddlZdZdZdZdS)Nz/var/cpanel/cpanel.configcL t|d5}|}dddn #1swxYwYn#ttf$rYdSwxYw|D]I}||dr/|ddcSJdS)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 utf-8encodingNF=)open readlinesOSErrorIOError startswithstripsplit)pathparamfdatalines q/builddir/build/BUILD/imunify360-venv-2.5.0/opt/imunify360/venv/lib/python3.11/site-packages/clcommon/clconfig.py get_paramr s $ ) ) ) !Q;;==D ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! W uu00 ??e;;; ' ' 0JJLL&&s++Q/ / / / 0 4s,A4 A8A8AAAc|d|d}tj|sAt|dd5}||dddn #1swxYwYdSt|d5}|}dddn #1swxYwYt |D]w\}}||drZ|||<t|dd5}|d|dddn #1swxYwYdSxt|dd5}||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 wrrNa) osrexistsr writer enumerater join)rrvaluenew_linerrirs r replace_paramr$ su##%###H 7>>$   $g . . . ! GGH                   dW % % %{{}}T??4 ??e;;; ' ' DGdC'222 'a &&& ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' FF   dC' * * *a sGAA #A :BB"B))DD" %D" ?E""E&)E&)rCPANEL_CONFIG_PATHrr$rr(s> 0&r'