/opt/cloudlinux/venv/lib/python3.11/site-packages/clselect/__pycache__
Edit: /opt/cloudlinux/venv/lib/python3.11/site-packages/clselect/__pycache__/clselect.cpython-311.pyc (31431B)
§
Fl™jÛW ã óª — d dl mZ d dl mZ d dl mZ d dlZd dlZd dlZd dlmZ d dlm Z d dl
mZ dd l
mZmZ dd
lmZ d dlmZ G d„ d
e¦ « ZdS )é )Úabsolute_import)Úprint_function)ÚdivisionN)Úglob)Úmap)Úconfigparseré )ÚClSelectExceptÚBaseClSelectException)Úclprint)Úclcagefsc óâ — e Zd Z ej ¦ « rdndZe› d�Ze› d�ZdZe› d�Z e› d�Z
e› d�Zd Zd
Z
dZdZe
ez Zeez Zd
Ze
ez Zeez Zed„ ¦ « Zed„ ¦ « Zd3d„Zd„ Zd„ Zd„ Zd„ Zd„ Zd„ Zd4d„Zd„ Z d„ Z!d„ Z"d„ Z#d4d„Z$d„ Z%d5d!„Z&d"„ Z' ee'¦ « Z'd#„ Z( ee(¦ « Z(d$„ Z) ee)¦ « Z)d6d&„Z*d'„ Z+d(„ Z,d)„ Z-d*„ Z.d+„ Z/d7d,„Z0d7d-„Z1d.„ Z2d5d/„Z3d0„ Z4d4d1„Z5d7d2„Z6d S )8ÚClSelectz/etc/cl.selector.conf.dz/etc/cl.selectorz/selector.confz
/defaults.cfgz/usr/bin/phpz/native.confz
/user.confz/php.extensions.d/z/usr/sbin/cagefsctlz/var/lvez/var/lve/php.dat.dz
/php%s.datz/php_native_ver.datc óÈ — t j ¦ « rd S ddlm} m} n# t
$ r t
d¦ « ‚w xY w | ¦ « s |¦ « st
d¦ « ‚d S d S )Nr ©Ú!multiphp_system_default_is_ea_phpÚselector_modules_must_be_usedzCageFS not installed.zesystem default PHP version is alt-php. PHP Selector is disabled. Use cPanel MultiPHP manager instead.)r
Ú in_cagefsÚclcagefslib.selector.configurer r ÚImportErrorr r s úH/opt/cloudlinux/venv/lib64/python3.11/site-packages/clselect/clselect.pyÚ%check_multiphp_system_default_versionz.ClSelect.check_multiphp_system_default_version/ s´ € åÔÑÔð ØˆFð AØwÐwÐwÐwÐwÐwÐwÐwÐwøÝð Að Að AÝ'Ð(?Ñ@Ô@Ð@ð Aøøøð 1Ð0Ñ2Ô2ð Ð;XÐ;XÑ;ZÔ;Zð Ý'Øwñô ð
ð ð ð ð s — :c óT — t j t j ¦ « S ©N)ÚosÚpathÚexistsr Ú USER_CONF© ó r Úwork_without_cagefszClSelect.work_without_cagefs> s € åŒw�~Š~�hÔ0Ñ1Ô1Ð1r Úphpc óú — || _ | ¦ « | _ i | _ i | _ t ¦ « | _ d | _ t ¦ « | _
| ¦ « d S r )Ú_itemÚ_get_default_config_handlerÚ_dhÚ_selector_contentsÚ_native_contentsÚsetÚ_hidden_extensionsÚ_native_versionr r! Úwithout_cagefsÚ_load_config_files)ÚselfÚitems r Ú__init__zClSelect.__init__B sl € ؈Œ
Ø×3Ò3Ñ5Ô5ˆŒØ"$ˆÔØ "ˆÔÝ"%¡%¤%ˆÔØ#ˆÔÝ&×:Ò:Ñ<Ô<ˆÔØ×ÒÑ!Ô!Ð!Ð!Ð!r c ó¸ ‡ — ˆ fd„t j ‰ d¦ « ¦ « fˆ fd„t j ¦ « fg}|D ]\ }} |¦ « rŒ|‚d S )Nc óh •— t j ‰ d¦ « ¦ « S )NÚcli)r r r Ú_get_native_path©r. s €r ú
z-ClSelect.check_requirements..P s# ø€ �œŸš t×'<Ò'<¸UÑ'CÔ'CÑDÔD€ r r3 c ót •— ‰ ¦ « p#t j ‰ j ¦ « S r )Ú
_is_in_cagefsr r r Ú _CAGFSCTLr5 s €r r6 z-ClSelect.check_requirements..S s( ø€ �T×'Ò'Ñ)Ô)ÐKR¬W¯^ª^¸D¼NÑ-KÔ-K€ r )r
ÚNativeNotInstalledr4 ÚMissingCagefsPackage)r. Ú utilitiesÚ predicateÚerrors ` r Úcheck_requirementszClSelect.check_requirementsL s� ø€ ð EÐDÐDÐDÝÔ1°$×2GÒ2GÈÑ2NÔ2NÑOÔOð
ð LÐ
KÐ
KÐ
KÍ^ÔMpÑMrÔMrÐsð
ˆ ð !*ð ð шI�u؈y‰{Œ{ð
ØØˆKð ð r c óš — t t j | j d¦ « ¦ « D ]}| |¦ « Œd S )Nz*.cfg)r r r ÚjoinÚCONFIGS_DIRÚ_load_config_file)r. Úfilenames r r- zClSelect._load_config_files[ sM € Ý�RœWŸ\š\¨$Ô*:¸GÑDÔDÑEÔEð -ð -ˆHØ×"Ò" 8Ñ,Ô,Ð,Ð,ð -ð -r c ó¢ — t j d d¬¦ « } | |¦ « n=# t j $ r+}t j |dt
|¦ « z ¬¦ « ‚d }~ww xY w | j | dd¦ «
d¦ « ¦ « d S # t j t j f$ r Y d S w xY w)NF©Ú
interpolationÚstrictzConfig is malformed, error: %s©ÚmessageÚ
extensionsÚhide_extensionsú,)
ÚConfigParserÚSafeConfigParserÚreadÚErrorr
ÚFileProcessErrorÚstrr* ÚupdateÚgetÚsplitÚNoSectionErrorÚ
NoOptionError)r. ÚfilepathÚdhÚes r rC zClSelect._load_config_file_ së € Ý
Ô
*¸ÀeÐ
LÑ
LÔ
Lˆð oØ�GŠG�HÑÔÐÐøÝÔ!ð oð oð oÝ Ô1°(ÐDdÕgjÐklÑgmÔgmÑDmÐnÑnÔnÐnøøøøð oøøøð ØÔ#×*Ò*¨2¯6ª6°,Ð@QÑ+RÔ+R×+XÒ+XÐY\Ñ+]Ô+]Ñ^Ô^Ð^Ð^Ð^øÝÔ+\Ô-GÐHð ð ð ØˆDˆDð øøøs' ˜. ®A(½&A#Á#A(Á,AB/ Â/CÃ
Cc ó, — | ¦ « }g }t | ¦ « ¦ « D ]N} | ||| d || d | j f¦ « Œ?# t
$ r Y ŒKw xY wt
|¦ « S )zM
Returns alternatives summary as tuple
:rtype: tuple
ÚversionÚdata)Úget_all_alternatives_dataÚsortedÚkeysÚappendr$ ÚKeyErrorÚtuple)r. ÚalternativesÚlist_of_alternativesÚalts r Úlist_alternativeszClSelect.list_alternativesl s° € ð
×5Ò5Ñ7Ô7ˆØ!Ðå˜,×+Ò+Ñ-Ô-Ñ.Ô.ð ð ˆCð
Ø$×+Ò+¨S°,¸sÔ2CÀIÔ2NÐP\Ð]`ÔPaÐbhÔPiÐjnÔjtÔPuÐ,vÑwÔwÐwÐwøÝð
ð
ð
Ø�ð
øøøåÐ)Ñ*Ô*Ð*s »;A7Á7
BÂBc ó� — | j s9 | ¦ « n## t j t j f$ r i cY S w xY w| j S )aá
Returns dict of all selector config contents.
If no data loads them
:return:
{'4.4': {'version': '4.4.9', 'data': {'lsphp': '/opt/alt/php44/usr/bin/lsphp',
'php.ini': '/opt/alt/php44/etc/php.ini',
'php': '/opt/alt/php44/usr/bin/php-cgi',
'php-cli': '/opt/alt/php44/usr/bin/php'}}}
:rtype: dict
)r' Ú_load_alternatives_configr
ÚConfigNotFoundÚWrongConfigFormatr5 s r r_ z"ClSelect.get_all_alternatives_data{ sa € ð Ô&ð