%PDF- %PDF-
Direktori : /usr/share/hplip/__pycache__/ |
Current File : //usr/share/hplip/__pycache__/unload.cpython-312.pyc |
� = f4a � �� � d Z dZdZdZddlZddlZddlZddlZddlZddl Z ddl Z ddlZddlZddl Z ddlZddl� ddlmZ er#ej) d� ej* d � dd lmZmZmZmZ ddlmZ G d� d e j: � Zd� Z ej@ eee ede!e"e#fe$fddd� Z%e%jM ejN dgdg�� e%jQ ddg� \ Z)Z*Z+Z,Z-Z.ddl/m0Z0 ejb � Z2e)D ] \ Z3Z4e3dv s�e4Z2� e,e!k( r ejj � se"Z,e,e!k( r(e-dk( r#ej) d� ej* d � e,e"e#fv �r e%jm e*e+de jn d fi�� Z*e*s ej* d � ejq de*z � e0jr de*e+� Z:e:j} e?� e:j� � ejq ej� de:j. jT z � � ejq ej� d � � ej� j� ej� j� ej� j� e2� � � Z2 ej� e2� e,e"k( r, ee:� ZJ eJj� � e:j� � �n� eId$ ejb � z � e:j� � ZO eI� ePeO� dkD �rbdZQeOD ] ZR eSeQ ePeRd � � ZQ� ej� eQd%z d%d&�d'd%ej� j� d(�d'd%d&�f� ZV eI� eIej� eVj� d)� � � dZXeOD ]H ZR eIeVj� d*eRd z ej� eRd � eRd% �d+eRd, ��f� � eXeRd z ZX�J eIej� d- ePeO� ej� eXd� fz � � eIej� d.� � e:j� eOedd� \ ZXZ[Z\ eIej� d/ ej� eX� e[eXd0z e[z fz � � e:j� � �n� ddl]� dd2l^m_Z_ e`ej� � Zbecj� eb eed4� eb efd5� � e.�Pegj� d6d7d8� Z.e.j� � d8k( r* ejekj� � � Z.ej� d9e.z � e.j� � d:k7 r�d;Z< e.j� d<� \ ZoZpd<j� eoe<g� Z.ej� d=e.z � esd� Ztd>eoz Zuej� d?euz � etj� euewj� � Zyeyrebj� et� nd:Z.e.d:k( rej� d@� n^ej� dAe.z � e{j� e{e.� � e.ew_l elj� elj� elj� e.� � e_�j dBge*e+� Z�eb�j e�� e��j � eb�j � ejq dD� ejq dE� y# e$ r Y ��bw xY w# e;$ r;Z<ej) de<jz z � ej* d � Y dZ<[<��dZ<[<ww xY w# e;$ r7 ej) d� e:j� � ej* d � Y ��;w xY w# eH$ r0 eIej� d!e2z � � ej* d � Y ���w xY w# eL$ r ej) d"� Y ���eM$ rZ<ej) d#e<z � Y dZ<[<���dZ<[<ww xY w# e:j� � w xY w# e:j� � w xY w# eL$ r ej) d1� Y ��kw xY w# e$ r' ej) d3� ej* d � Y ���w xY w# er$ r e.Zod<j� e.e<g� Z.Y ���w xY w# eljv $ r Y ��w xY w# e;$ r' ej) dC� ej* d � Y ��4w xY w)Fz3.3z hp-unloadzPhoto Card Access Utilityz�Access inserted photo cards on supported HPLIP printers. This provides an alternative for older devices that do not support USB mass storage or for access to photo cards over a network.� N)�*)�PY3z:This functionality is not spported in python3 environment.� )�device�utils�tui�module)�cupsc � � e Zd Zd� Zd� Zd� Zd� Zd� Zd� Zd� Z d� Z d � Zd � Zd� Z d� Zd � Zd� Zd� Zd� Zd� Zd+d�Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Z d� Z!d,d �Z"d!� Z#d"� Z$d#� Z%d$� Z&d%� Z'd&� Z(d'� Z)d(� Z*d)� Z+y*)-�Consolec �R � t j j | � d| _ || _ | j j � }|d |_ |j rt j d� t j d| j j � z � | _ y )Nz8Type 'help' for a list of commands. Type 'exit' to quit.� zPhoto card is write protected.�pcard: %s > )�cmd�Cmd�__init__�intro�pc�info� write_protect�log�warning�bold�pwd�prompt)�selfr � disk_infos �/usr/share/hplip/unload.pyr zConsole.__init__@ sr � ��������P�� �����G�G�L�L�N� �$�Q�<��� ����K�K�8�9��h�h�~������ �=�>��� c �. � t | j � y)z/Print a list of commands that have been enteredN)�print�_hist�r �argss r �do_histzConsole.do_histK s � � �d�j�j�r c � � y�zExits from the console���� r# s r �do_exitzConsole.do_exitO � � �r c � � yr'