HEX
Server: Apache
System: Linux srv1.prosuiteplus.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: prosuiteplus (1001)
PHP: 8.3.20
Disabled: NONE
Upload Files
File: //usr/lib64/libreoffice/program/pythonloader.pyo
�
Ʌ`c@s�ddlZddlZddlZddlZddlZddlmZmZddlm	Z	ddl
mZdZdZ
dZdZd	�ZiZd
�Zd�Zde	eejfd
��YZdS(i����N(t	ExceptiontRuntimeException(tXImplementationLoader(tXServiceInfosvnd.openoffice.pymodule:iscom.sun.star.loader.Pythons org.openoffice.comp.pyuno.LoadercCsS|jd�}d|kr1td|d��n|d|!||dt|�!fS(Nt:i����s!PythonLoader: No protocol in url ii(tfindRtNonetlen(turltnColon((s./usr/lib64/libreoffice/program/pythonloader.pytsplitUrl"scCstj|d�}tdkr1dt|�GHndtjt|�tj�kr�|tjkr�tdkr�dt|�dGHntjj	|�ntj|d�}dtjt|�tj�kr|tjkrtdkr�dt|�dGHntjj	|�ndS(Ns/pythonpath.zipischecking for existence of sadding s to sys.paths/pythonpath(
t	unohelpertfileUrlToSystemPathtDEBUGtencfiletostaccesstF_OKtsystpathtappend(RR((s./usr/lib64/libreoffice/program/pythonloader.pyt!checkForPythonPathBesideComponent)s00cCs|jtj��S(N(tencodeRtgetfilesystemencoding(tuni((s./usr/lib64/libreoffice/program/pythonloader.pyR8stLoadercBsGeZd�Zd�Zd�Zd�Zd�Zd�Zd�ZRS(cCstrdGHn||_dS(Nspythonloader.Loader ctor(R
tctx(tselfR((s./usr/lib64/libreoffice/program/pythonloader.pyt__init__<scBs erd|GHne|�\}}d|krf|jjd�}|j|�}e|�\}}ner�d|d|GHny(d|kr�ej||�}ej|�}|s�e	j
d�}e|d|jd	�!�ej
|�}ejd
kre|dd�}ne|�}|j�jd
d�}|jd�sR|d}ne|e|�d�}	|	|jfdUe|�|_|e|<n|Sd|krv|jd	�}
d|
krej
|d|
!�}||
de|�!}|ejkrejj|�qne|�}|jd�\}}
}x7|
dkrq|jd�\}}
}e||�}q;W|Ser�d|dGHned|d||��Wnqek
r}er�de e!|��de |�de |j"�GHned|de |�d��nXdS(Nspythonloader: interpreting url svnd.sun.star.expands./singletons/com.sun.star.util.theMacroExpanderspythonloader: after expansion Rtfilet
uno_componentit/t3tencodingtutf_8s
ts
texecsvnd.openoffice.pymodulei����it.sUnknown protocol 't'sPythonLoader: Unknown protocol s in url sPython import exception s	 message s args sCouldn't load s for reason ($R
R
RtgetValueByNametexpandMacrosRt
absolutizetg_loadedComponentstgettimpt
new_moduleRtrfindRRtversiontopentreadtreplacetendswithtcompileRt__dict__t__file__RRRt
__import__t	partitiontgetattrRRtstrttypetargsR(RRtprotocolt	dependenttexptmodtfilenamet
fileHandletsrct
codeobjecttnSlashRtpath_componenttdottrestte((s./usr/lib64/libreoffice/program/pythonloader.pytgetModuleFromUrlAsd

7%cCs�trdGHn|j|�}|jjdd�}trJdt|�GHn|dkro|j||jj|�S|j|||jj�SdS(Nspythonloader.Loader.activatetg_ImplementationHelpersFetched ImplHelper as (	R
RJR5R+RR:tgetComponentFactoryRtServiceManager(RtimplementationNametdummytlocationUrltregKeyR@t
implHelper((s./usr/lib64/libreoffice/program/pythonloader.pytactivate�scCsntrdGHn|j|�}|jjdd�}|dkrT|j|jj|�S|j||jj�SdS(Ns%pythonloader.Loader.writeRegistryInfoRK(R
RJR5R+RtwriteRegistryInfoRRM(RRQRORPR@RR((s./usr/lib64/libreoffice/program/pythonloader.pyRT�scCstS(N(tg_implementationName(R((s./usr/lib64/libreoffice/program/pythonloader.pytgetImplementationName�scCs||j�kS(N(tgetSupportedServiceNames(RtServiceName((s./usr/lib64/libreoffice/program/pythonloader.pytsupportsService�scCstS(N(tg_supportedServices(R((s./usr/lib64/libreoffice/program/pythonloader.pyRW�s(	t__name__t
__module__RRJRSRTRVRYRW(((s./usr/lib64/libreoffice/program/pythonloader.pyR;s		C	
			(scom.sun.star.loader.Python(tunoRRR,Rtcom.sun.star.unoRRtcom.sun.star.loaderRtcom.sun.star.langRtMODULE_PROTOCOLR
RZRUR
R*RRtBaseR(((s./usr/lib64/libreoffice/program/pythonloader.pyt<module>s