!oi XddlZddlZddlmZddlmZddlmZddlm Z  d d Z d Z dS) N)DesignerSource) PythonSourceTranslationFile) UserExceptionFTc |d}fd|D}g}|D]}tj|rtj|D]\} } } t | |t | || D]} tj| | } | dr%|t| \| dr%|t| rtd| Ґ |dr&|t|E|dr&|t|td ||D]0}|D]}| ||1dS) z Update a sequence of translation (.ts) files from a sequence of Python source (.py) files, Designer source (.ui) files or directories containing source files. Nc6g|]}t|S)) no_obsolete no_summaryverboser).0tsr r rs EC:\PYTHON\Scheduler\python\Lib\site-packages\PyQt6/lupdate/lupdate.py zlupdate..'sA)))$BK!7444)))z.py)filenamerz.uiIgnoringz.{0} must be a directory or a .py or a .ui file)ospathisdirwalk_remove_excludesjoinendswithappendrrprintrformatupdatewrite)sourcestranslation_filesr r rexcludes translations source_filessourcedirpathdirnames filenamesfnrtss ``` rlupdater.s))))))')))L L!%!% 7== %02 4 4,9 8444 H555#44B!w||GR88H((// 4$++ ,h07!9!9!9::::"**5114$++ .07!9!9!9::::!4j(3334  4(__U # # %    &'BBB D D D D__U # # %   "FGDDD F F F F DKK"$$%% %   A HHQKKKK  rct|D]^}|dr||-|D].}tj||r||n/_dS)zB Remove all implicitly and explicitly excluded names from a list. .N)list startswithremovefnmatch)namesr$nameexcludes rrrXsU  ??3    LL    #  ?411LL&&&E r)FTFN) r4rdesigner_sourcer python_sourcertranslation_fileruserrr.rr rrr<s& ++++++''''''------GK $9999x     r