%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/share/hplip/__pycache__/
Upload File :
Create Path :
Current File : //usr/share/hplip/__pycache__/makeuri.cpython-312.pyc

�

=	fg����dZdZdZdZddlZddlZddlZddlZddl�ddl	�ddl
mZmZm
Z
gedd	d
f�dezddd
f�d
�d�d�d�d�d�ej�d�d�d�d�ej�ej �ej"�ej$�ej&�d�d�d�d�ej(�ej*�d�d�d�d�d�ej(�ej,�d �Ze
j0eeeeeefdd
d
�	Zej7d!gd"�d#�$�\ZZZZZ Z!	d#Z"d#Z#d#Z$d%Z%eD]?\Z&Z'e&d&vrd
Z"�
e&d'vrd
Z#�e&d(vrd
Z$�e&d)vr
	e(e'�Z%�)e&d,k(s�/e+jYd-��Ae"xse#xse$Z-e-e_.ej_�e0ejb�d%k7rejUd.g�+�ejbdZ2d/e2jg�vrejUd0g�+�ejhe2e%�\Z5Z6Z7e5s#e+jqd1�ejrd%�e"r	e:e5�n
e-se:d2e5z�e6re#r	e:e6�n#e-s!e:d3e6z�ne6se#re+jqd4�e7re$r	e:e7�n#e-s!e:d5e7z�ne7se$re+jqd6�e-s#e+jyd�e+jyd8�yy#e)$rejUd*g�+�Y���wxYw#e;$re+jqd7�Y�]wxYw)9z5.0zDevice URI Creation Utilityz
hp-makeurizOCreates device URIs for local and network connected printers for use with CUPS.�N)�*)�device�utils�module��nameTz2Usage: %s [OPTIONS] [SERIAL NO.|USB ID|IP|DEVNODE]�summary)z[SERIAL NO.|USB ID|IP|DEVNODE]r�headingF)zUSB IDs (usb only):zs"xxx:yyy" where xxx is the USB bus ID and yyy is the USB device ID. The ':' and all leading zeroes must be present.�optionF)rzA(Use the 'lsusb' command to obtain this information. See Note 1.)rF)zIPs (network only):z$IPv4 address "a.b.c.d" or "hostname"rF)zDEVNODE (parallel only):z"/dev/parportX", X=0,1,2,...rF)z#SERIAL NO. (usb and parallel only):z"serial no."rT)z.To specify the port on a multi-port JetDirect:zE-p<port> or --port=<port> (Valid values are 1\*, 2, and 3. \*default)rF)z$Show the CUPS URI only (quiet mode):z-c or --cupsrF)z$Show the SANE URI only (quiet mode):z-s or --sanerF)z&Show the HP Fax URI only (quiet mode):z-f or --faxrF)zUSB:z$ hp-makeuri 001:002�exampleF)zNetwork:z$ hp-makeuri 66.35.250.209rF)z	Parallel:z$ hp-makeuri /dev/parport0rF)z&USB or parallel (using serial number):z$ hp-makeuri US123456789rF)zs1. Example using 'lsusb' to obtain USB bus ID and USB device ID (example only, the values you obtain will differ) :r�noteF)z
   $ lsusbrr
F)z3   Bus 003 Device 011: ID 03f0:c202 Hewlett-Packardrr
F)z   $ hp-makeuri 003:011rr
F)zn   (Note: You may have to run 'lsusb' from /sbin or another location. Use '$ locate lsusb' to determine this.)rr
T)zhp-setupr�seealsoFzp:csf)�port�cups�sane�faxF)�handle_device_printer�)z-cz--cups)z-sz--sane)z-fz--fax)z-pz--portz7Invalid port number. Must be between 1 and 3 inclusive.)�	error_msgz-g�debugzAYou must specify one SERIAL NO., IP, USB ID or DEVNODE parameter.�	localhostzInvalid hostnamezDevice not foundzCUPS URI: %szSANE URI: %szDevice does not support scan.zHP Fax URI: %szDevice does not support fax.z	User exitzDone.)=�__version__�	__title__�__mod__�__doc__�sys�re�getopt�os�base.g�
base.codes�baserrr�
USAGE_OPTIONS�USAGE_LOGGING1�USAGE_LOGGING2�USAGE_LOGGING3�
USAGE_HELP�USAGE_EXAMPLES�USAGE_SPACE�USAGE_NOTES�
USAGE_SEEALSO�USAGE�Module�INTERACTIVE_MODE�mod�parseStdOpts�opts�
device_uri�printer_name�mode�
ui_toolkit�lang�cups_quiet_mode�sane_quiet_mode�fax_quiet_mode�jd_port�o�a�int�
ValueError�usage�log�	set_level�
quiet_mode�quiet�	showTitle�len�args�param�lower�makeURI�cups_uri�sane_uri�fax_uri�error�exit�print�KeyboardInterrupt�info���/usr/share/hplip/makeuri.py�<module>rUs9��.��)�	�
��
[���	�
�	���&�&�	
�7�B���
%�	
�?�'�I�2�y�Z^�
_�	
�
B�	
�n�	
�i�		
�
[�	
�X�
	
�R�	
��
�
�	
�X�	
�T�	
�T�	
�U�	
��
�
�	
�!&� 4� 4�	
�7<�6J�6J�	
��
�
�	
��
�
�	
� =�!	
�"G�#	
�$H�%	
�&c�'	
�(�
�
�)	
�*�
�
�+	
�,U�-	
�.,�/	
�0U�1	
�29�3	
�4O�5	
�6�
�
�7	
�8�
�
�9	
�:-�;	
��B�f�m�m�G�Y��W�e�%�'��t�T�;�����W�=�+0��2�7��j�,��j�$�L��O��O��N��G��#���1�� � �"�O�
�"�
"�"�O�
�/�
!�!�N�
�"�
"�
a��a�&���$�Y��M�M�'�"�##�(!�E�O�E�~�J��C�I��M�M�O�
�3�8�8�}����	�	�`�a�	�b��H�H�Q�K�E��e�k�k�m�#��	�	�/�0�	�1�"0�&�.�.���"@��H�h����	�	�$�%��������
�h��
�
�n�x�'�(����(�O���.�8�+�,�
�/��	�	�1�2����'�N���"�W�,�-�
���	�	�0�1�
��H�H�R�L��H�H�W����w�
a��	�	�%^�$_�	�`�
a��p���I�I�k���s=�)K�J:�	K�EK�:K�K�K�K�K2�1K2

Zerion Mini Shell 1.0