
    -Ph6
                       d dl mZ d dlZd dlZd dlZd dlZd dlZd dlZd dlZ	 ej
                    Ze                    d           e                    dd           e                    ddd           e                    d	d
d           e                    dd           e                    ddg            e                    dd           ddZddZdS )     )annotationsNcommandz--build-dir )default-iz--input-oz--outputz	--itstoolitstoolz--itsappend)actionr   mo_files+)nargs	build_dirstr	its_filesT.List[str]in_fname	out_fnamereturnintc                \   |st          d           dS t          j        t          j                            |          |           5 }g }|D ]S}t          j                            |          s t          d|             d d d            dS |                    d          s t          d|             d d d            dS |                    d          }	|	d                             t          j	        d	f          r.t          j                            |	d         d d
                   }
n%t          j                            |	d                   }
t          j        
                    ||
dz             }t          j        ||           |                    |           Ut          j        |          }|r|D ]}|                    d|g           |                    d|d|g           |                    |           t#          j        |          cd d d            S # 1 swxY w Y   d S )Nz-No mo files specified to use for translation.   )prefixdirzCould not find mo file z.mozFile is not a mo file: LC_MESSAGESr   /r   z-jr   )printtempfileTemporaryDirectoryospathbasenameexistsendswith	partitionsepjoinshutilcopyr
   shlexsplitextend
subprocesscall)r   r	   r   r   r   r   tmp_dirlocale_mo_filesmo_filepartslocaletmp_mo_fnamecmdfnames                 Z/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/mesonbuild/scripts/itstool.pyrun_joinr9      s    =>>>q		$BG,<,<X,F,FI	V	V	V $Za 	1 	1G7>>'** 999:::$ $ $ $ $ $ $ $ ##E** 999:::$ $ $ $ $ $ $ $ %%m44EQx  "&#// 4))%(3B3-88))%(337<<%@@LK...""<0000k'"" 	*" * *

D%=))))

D()% 	& 	& 	&

?###s##9$ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $s   :H!(H!EH!!H%(H%argsc                J   t                               |           }|j        }t          j                            dt          j                              }|j        r|j        }|dk    r-t          ||j	        |j
        |j        |j        |j                  S t          d           dS )NMESON_BUILD_ROOTr(   zUnknown subcommand.r   )parser
parse_argsr   r!   environgetgetcwdr   r9   r	   itsr   inputoutputr   )r:   optionsr   r   s       r8   runrF   =   s    %%GoG
129;;??I &%	&	(( ( 	( 	#$$$q    )r   r   r	   r   r   r   r   r   r   r   r   r   r   r   )r:   r   r   r   )
__future__r   r!   argparser.   r   r+   r)   typingTArgumentParserr=   add_argumentr9   rF    rG   r8   <module>rO      sQ   # " " " " " 				            	 	 	"	"   I      M2  . . .   D)R  0 0 0   D*b  1 1 1   K  3 3 3   GHb  9 9 9   Jc  * * *"$ "$ "$ "$J     rG   