HEX
Server: Apache
System: Linux opal14.opalstack.com 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
User: curbgloabal_opal (1234)
PHP: 8.1.29
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //lib64/python2.7/site-packages/officehelper.pyc
�
�\Ofc@s�ddlZddlZddlmZddlmZddlZddlmZddl	m
Zdefd��YZd�Z
dS(	i����N(tplatform(tsleep(tNoConnectException(t	ExceptiontBootstrapExceptioncBseZRS((t__name__t
__module__(((s2/usr/lib64/python2.7/site-packages/officehelper.pyR"sc	Cs�y^dtjkr"tjd}nd}tjj|d�}tjd�rY|d7}ntj�dttj��d}|dd	djd
|dg�f}tj	tj
||�tj�}|j
jd|�}djd
|dg�}d}xdtr\y|j|�}PWq�tk
rX|d8}|dkrKtdd��ntd�q�Xq�WWn?tk
rt�n,tk
r�}tdt|�d��nX|S(s?Bootstrap OOo and PyUNO Runtime.
    The soffice process is started opening a named pipe of random name, then the local context is used
	to access the pipe. This function directly returns the remote component context, from whereon you can
	get the ServiceManager by calling getServiceManager() on the returned object.
	tUNO_PATHttsofficetwins.exetunois--nologos--nodefaults--accept=pipe,name=s;urp;s"com.sun.star.bridge.UnoUrlResolversuno:pipe,name=s ;urp;StarOffice.ComponentContextiiis!Cannot connect to soffice server.g�?sCaught exception N(tostenvirontpathtjoinRt
startswithtrandomtseedtstrtspawnvtP_NOWAITRtgetComponentContexttServiceManagertcreateInstanceWithContexttTruetresolveRRtNoneRR(	tsOfficet	sPipeNametcmdArrayt
xLocalContexttresolvertsConnecttnLooptxContextte((s2/usr/lib64/python2.7/site-packages/officehelper.pyt	bootstrap%s<

$		


(RRtsysRttimeRRtcom.sun.star.connectionRtcom.sun.star.unoRtUnoExceptionRR%(((s2/usr/lib64/python2.7/site-packages/officehelper.pyt<module>s