a „oe€ ã@sdddlZddlZddlZddlZddlmZdadd„ZGdd„dejƒZdd„Z e d kr`e ƒdS) éN)ÚwinoutcCs�t ¡t ¡}ddl}| t ¡|j¡zNt  ||fdtj ¡}|tj krf|  t  ¡ dd¡¡q,qfq,Wt ¡tdƒnt ¡tdƒ0dS)Nrúzz Thread dieing)Ú win32traceZInitReadZ GetHandleÚ win32processZSetThreadPriorityÚwin32apiZGetCurrentThreadZTHREAD_PRIORITY_BELOW_NORMALÚ win32eventZWaitForMultipleObjectsZINFINITEZ WAIT_OBJECT_0ÚwriteÚreadÚreplaceZTermReadÚprint)Z stopEventÚfileÚhandlerÚrc©rúEC:\Program Files\Certbot\pkgs\pythonwin\pywin\tools\TraceCollector.pyÚCollectorThread s" ÿ ÿ  ÿrc@s$eZdZdd„Zdd„Zdd„ZdS)Ú WindowOutputcGs:tjj|f|Žt dddd¡|_t t|j|f¡dS)Nr) rrÚ__init__rZ CreateEventÚ hStopThreadÚ_threadÚ start_newr)ÚselfÚargsrrrr(szWindowOutput.__init__cCst |j¡d|_dS©N)rZSetEventr©rrrrÚ _StopThread-s zWindowOutput._StopThreadcCs| ¡tj |¡tSr)rrrÚCloserrrrrr1s zWindowOutput.CloseN)Ú__name__Ú __module__Ú __qualname__rrrrrrrr'srcCs2tdur$d}t||ƒad}t |¡t d¡tS)NzPython Trace Collectorz’# This window will display output from any programs that import win32traceutil # win32com servers registered with '--debug' are in this category. Ú)Ú outputWindowrr)ÚtitleÚmsgrrrÚMakeOutputWindow;s   r$Ú__main__) rrrrZpywin.frameworkrr!rrr$rrrrrÚs