%PDF- %PDF-
| Direktori : /usr/lib/python3/dist-packages/UpdateManager/__pycache__/ |
| Current File : //usr/lib/python3/dist-packages/UpdateManager/__pycache__/HelpViewer.cpython-312.pyc |
�
�h9 � �. � d dl Z d dlZdgZ G d� d� Zy)� Nz
/usr/bin/yelpc � � e Zd Zd� Zd� Zd� Zy)�
HelpViewerc � � g | _ || _ t D ]/ }t j j |� s�#|d|z g| _ y y )Nzhelp:%s)�command�docu�
KNOWN_VIEWERS�os�path�exists)�selfr �viewers �:/usr/lib/python3/dist-packages/UpdateManager/HelpViewer.py�__init__zHelpViewer.__init__ sC � ������ �#� �F��w�w�~�~�f�%� &� �D�(8�9���� � c �$ � | j g k( ryy)zcheck if a viewer is availableFT)r �r s r �checkzHelpViewer.check s � ��<�<�2���r c �� � t j � dk( r:dt j v r(ddt j d g| j z | _ t j
| j � y)z$open the documentation in the viewerr � SUDO_USER�sudoz-uN)r �getuid�environr �
subprocess�Popenr s r �runzHelpViewer.run sZ � � �9�9�;�!���r�z�z� 9����
�
�;�'�� ��� �D�L�
������&r N)�__name__�
__module__�__qualname__r r r � r r r r
s � ��� 'r r )r r r r r r r �<module>r s! ��
� �
!�!�
�'� 'r