%PDF- %PDF-
Direktori : /lib/libreoffice/program/__pycache__/ |
Current File : //lib/libreoffice/program/__pycache__/pythonloader.cpython-312.pyc |
� '��f� � � � d dl Z d dlZd dlZd dlZd dlZd dlmZ d dlmZm Z d dl mZ d dlm Z dZd ZdZdZd � Zi Zd � Zd� Z G d� d ee ej, � Zy)� N)�unquote)� Exception�RuntimeException)�XImplementationLoader)�XServiceInfozvnd.openoffice.pymodule:)zcom.sun.star.loader.Pythonz org.openoffice.comp.pyuno.Loaderc �x � | j d� }d|k( rt d| z d � �| d| | |dz t | � fS )N�:���z!PythonLoader: No protocol in url r � )�findr �len)�url�nColons �,/usr/lib/libreoffice/program/pythonloader.py�splitUrlr # sI � � �X�X�s�_�F� �V�|�� C�c� I�4�Q�Q��q��=�#�f�Q�h�s�3�x�0�0�0� c � � t j | dz � }t dk( rt dt |� z � dt j t |� t j � k( rT|t j vrBt dk( rt dt |� z dz � t j j |� t j | dz � }dt j t |� t j � k( rV|t j vrCt dk( rt dt |� z dz � t j j |� y y y )Nz/pythonpath.zipr s checking for existence of s adding s to sys.pathz/pythonpath)� unohelper�fileUrlToSystemPath�DEBUG�print�encfile�os�access�F_OK�sys�path�append)r r s r �!checkForPythonPathBesideComponentr * s� � ��(�(�#�.?�*?�A�D���z� �+�g�t�o�=�>��B�I�I�w������0�0�����9I��A�:��*�w���.��@�A���������(�(�#�m�*;�=�D��B�I�I�w������0�0�����9I��A�:��*�w���.��@�A�������� :J�0r c �H � | j t j � � S �N)�encoder �getfilesystemencoding)�unis r r r 9 s � ��:�:�s�0�0�2�3�3r c �6 � e Zd Zd� Zd� Zd� Zd� Zd� Zd� Zd� Z y) �Loaderc �4 � t rt d� || _ y )Nzpythonloader.Loader ctor)r r �ctx)�selfr( s r �__init__zLoader.__init__= s � ���,�-���r c � � t rt d|z � t |� \ }}d|k( rC| j j d� }|j t |� � }t |� \ }}t rt d|z dz |z � d|k( �r t j ||� }t j |� }|s�t j d� }t |d|j d � � t j |� }t! |d �� 5 }|j# � j% dd � }|j'