ó J¡Vc @sÚddlmZdZdZdZdZddlZddlZddlZddl Tddl m Z m Z m Z mZd d „Zed d efd ed defe je je je je je je je je jg Zy¼ejeƒe jeeeeeeefe e!fdedeƒZ"yCe"j#ddddddddgde$ƒ\Z%Z&Z'Z(Z)Z*Wn:ej+k rªZ,ej-e,j.ƒeƒej/dƒnXej0dƒrÊej1dƒndZ2e$Z3xÓe%D]Ë\Z4Z5e4d0krÿeƒqÝe4d kred!ƒqÝe4d"kr1ed#ƒqÝe4d$kr]e6ed%d&ƒej/d'ƒqÝe4d1kr~e5j7ƒj8ƒZ2qÝe4d*kr“dZ2qÝe4d+krÝeZ3qÝqÝWej1e2ƒsÅeƒne3sÞe j9eeƒne"j:eeƒej;j<d,e=j>ƒZ?ej@ejAd-e?ƒƒej;jBe?ƒr[yejCe?ƒWq[eDk rWq[XnejEe?ƒejFejGƒejHe(ƒZIe jJeIe(e)e3ƒWneKk r¾ej-d.ƒnXe"jLƒej@d/ƒdS(2iÿÿÿÿ(tprint_functions1.1s0AutoConfig Utility to check queues configurationshp-daignose-queuess_Auto config utility for HPLIP supported multifunction Devices to diagnose queues configuration.N(t*(tutilstmoduletqueuestpasswordttextcCsI|dkrtjttƒntjt|tttƒtjdƒdS(NRi( Rt log_titlet __title__t __version__t format_texttUSAGEt__mod__tsystexit(ttyp((s_/builds/ul11u3sru-gate/components/hplip/build/prototype/i386/usr/share/hplip/diagnose_queues.pytusage&s ttnamesUsage: %s [MODE] [OPTIONS]tsummarytrun_as_root_oktquietshl:gsiuthelps help-restshelp-mans help-descslogging=tguit interactivethandle_device_printerit HPLIP_DEBUGtdebugtinfos-hs--helps --help-resttrests --help-mantmans --help-desctendt is-ls --loggings-gs-ss%s/hplip_queues.logsSaving output in log file: %ss User exitsDone.(s-hs--help(s-ls --logging(Mt __future__RR RR t__doc__R tostgetopttbase.gtbaseRRRRRtTruet USAGE_MODEtUSAGE_GUI_MODEtUSAGE_INTERACTIVE_MODEt USAGE_SPACEt USAGE_OPTIONStUSAGE_LOGGING1tUSAGE_LOGGING2tUSAGE_LOGGING3t USAGE_HELPR tlogt set_moduletModuletINTERACTIVE_MODEtGUI_MODEtUI_TOOLKIT_QT3tUI_TOOLKIT_QT4tmodt parseStdOptstFalsetoptst device_urit printer_nametmodet ui_toolkittloct GetoptErrorteterrortmsgRtgetenvt set_levelt log_levelt quiet_modetotatprinttlowertstripRt lockInstancetpathtnormpathtproptuser_dirtlog_fileRtboldtexiststremovetOSErrort set_logfilet set_wheretLOG_TO_CONSOLE_AND_FILEtPasswordt passwordObjt main_functiontKeyboardInterrupttunlockInstance(((s_/builds/ul11u3sru-gate/components/hplip/build/prototype/i386/usr/share/hplip/diagnose_queues.pyts’    "