ó J¡Vc@s<dZdZdZdZddlZddlZddlZddlZddl Z ddlZddl Tddl m Z m Z dd „Zed d efd ed d efe je je je je je je jdd defdd defdd defg Ze jeeeeeeefeefeƒZejdeƒ\Z Z!Z"Z#Z$Z%dZ'e(Z)e*Z+e#ekr e$dkr™e,j-dƒqe j.ƒsÆe,j-deƒej/dƒny:ddl0m1Z1m2Z2ddl3m4Z4ddl5m6Z6Wn+e7k r-e,j-dƒej/dƒnXe1ej8ƒZ9e6j:ƒZ;e;j<ƒZ=e=e>kr~e,j?dƒej/dƒn6e=e@krŸe4de)e+ƒZAne4de)e+eƒZAeAjBƒye,jCdƒe9jDƒWqeEk re,j-dƒej/dƒqXne,j-dƒeƒe,j?d ƒe,j?d ƒdS(!s1.0shp-diagnose_pluginsDiagnose Plugin Utilitys.Diagnose HP Plugin. Installs plugins if absentiÿÿÿÿN(t*(tutilstmodulettextcCsI|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_plugin.pytusage(s ttnamesUsage: %s [OPTIONS]tsummarys hp-plugintseealsoshp-setups hp-firmwarethandle_device_printertqt3s"Unable to load Qt3. Please use Qt4s+%s requires GUI support . Is Qt4 installed?i(t QApplicationt QMessageBox(tPluginDiagnose(t pluginhandlers,Unable to load Qt4 support. Is it installed?s"Device Plugin is already installedisStarting GUI loop...s User exits Only Qt4 GUI mode is supported sDone.(FRR Rt__doc__R tgetoptttimetos.pathtostretbase.gtbaseRRR tTruet USAGE_OPTIONStUSAGE_LOGGING1tUSAGE_LOGGING2tUSAGE_LOGGING3t USAGE_HELPt USAGE_SPACEt USAGE_SEEALSOtFalseRtModuletINTERACTIVE_MODEtGUI_MODEtUI_TOOLKIT_QT3tUI_TOOLKIT_QT4tmodt parseStdOptstoptst device_urit printer_nametmodet ui_toolkittloctNonet plugin_pathtPLUGIN_REQUIREDt install_modetPLUGIN_REASON_NONEt plugin_reasontlogterrortcanEnterGUIMode4R t PyQt4.QtGuiRRtui4.plugindiagnoseRt installerRt ImportErrortargvtappt PluginHandlet pluginObjt getStatust plugin_ststPLUGIN_INSTALLEDtinfotPLUGIN_NOT_INSTALLEDtdialogtshowtdebugtexec_tKeyboardInterrupt(((s_/builds/ul11u3sru-gate/components/hplip/build/prototype/i386/usr/share/hplip/diagnose_plugin.pyts|         $