QfU2~ ddlZddlZddlZddlZddlZddgZeeZGdde Z Gdde Z ddZ dd Z efd ZGd d eZdd Z ddZefdZdZddZedk(rMeej2dkredej6yej2d=eej2dyy)N run_modulerun_pathc eZdZ dZdZdZy) _TempModulec@||_t||_g|_yN)mod_name ModuleTypemodule _saved_moduleselfr s ,/opt/alt/python312/lib64/python3.12/runpy.py__init__z_TempModule.__init__s   * c|j} |jjtj||j tj|<|S#t $rY*wxYwr)r r appendsysmodulesKeyErrorr r s r __enter__z_TempModule.__enter__!sZ==     % %ckk(&; <!%  H    s,A A%$A%c|jr2|jdtj|j<g|_ytj|j=g|_yNr)r rrr rargss r__exit__z_TempModule.__exit__*sL   )-););A)>CKK &  DMM*rN__name__ __module__ __qualname__rrrrrrrsM  rrceZdZdZdZdZy)_ModifiedArgv0c>||_tx|_|_yr)valueobject _saved_value _sentinel)rr%s rrz_ModifiedArgv0.__init__2s -3X5DNrc|j|jur tdtjd|_|j tjd<y)NzAlready preserving saved valuer)r'r( RuntimeErrorrargvr%)rs rrz_ModifiedArgv0.__enter__6sA   DNN 2?@ @HHQKjj rc`|j|_|jtjd<yr)r(r%r'rr+rs rrz_ModifiedArgv0.__exit__<s ^^ '' rNrr!rrr#r#1s6! (rr#c  ||j||d}|}d} n2|j}|j}|j} | |j}|j||| d|||t |||S)N)r__file__ __cached____doc__ __loader__ __package____spec__)updateloaderorigincachedparentexec) code run_globals init_globalsr mod_specpkg_name script_namer5fnamer7s r _run_coderAAs4<(  H("'$*!%$*%-"* , { rc 0 ||n |j}t|5}t|5|jj}t |||||||ddddddj S#1swY!xYw#1swYj SxYwr)r6rr#r __dict__rAcopy) r:r<r r=r>r?r@ temp_module mod_globalss r_run_module_coderG[s@#+KE X +~e/D!((11 $ \Hh  =0E      0E/D     s" A=(A1A=1A: 6A==Bc |jdr|d|jd\}}}|rc t|t j j|}|6t|ds*ddl m }dj||}|t| tjj|}| |d|z|j,0|dk(s|j'dr|d |dz} t/| |S|j0} | |d|z | j3|} | |d|z||| fS#t$rE}|j-|j|k7r|j|jdzsYd}~Fd}~wwxYw#tt t"t$f$rT} d}|j'd r|d |dd d |d z }||j|t)| j*| | d} ~ wwxYw#|$r&}|t j vr||d|dd}~wwxYw#t$r}|t||d}~wwxYw)N.z#Relative module names not supported__path__r)warnz{mod_name!r} found in sys.modules after import of package {pkg_name!r}, but prior to execution of {mod_name!r}; this may result in unpredictable behaviour)r r>z:Error while finding module specification for {!r} ({}: {})z.pyz . Try using 'z' instead of 'z' as the module name.zNo module named %s__main__z .__main__z%Cannot use package as __main__ modulez; z- is a package and cannot be directly executedz0%r is a namespace package and cannot be executedzNo code object available for %s) startswith rpartition __import__ ImportErrornamerrgethasattrwarningsrKformatRuntimeWarning importlibutil find_specAttributeError TypeError ValueErrorendswithtypersubmodule_search_locations_get_module_detailsr5get_code) r errorr>_eexistingrKmsgspecex pkg_main_namer5r:s rrarais39::((-NHa  x ;;??8,  *(E %#FHxFH  $ % I~~''1 |(8344 &&2 z !X%6%6{%C?@ @ G${2M&}e< < [[F ~FCKLM M&x( |5@AA T4 g vv~!&&H"4 ++AFFSL9  & J ?IK   U # mHSbM?3 z!68 9CCJJxb):):B?@bHI" Gs{{*9:HFG G G &F1IA%&s` D:F ,G;H): F:FF G8$AG33G8;H&!H!!H&) I 2II c eZdZy)_ErrorN)rrr r!rrrlrlsLrrlcz |s|dk7rt|t\}}}ntt\}}}tj dj}|rjtjd<t|ddS#t$r4}tjd|}tj |Yd}~d}~wwxYw)NrMz: r) rarl_get_main_module_detailsr executableexitrrCr6r+rA)r alter_argvr=r:excrg main_globalss r_run_module_as_mainrts  Z/':8V'L $Hh'?'G $Hh;;z*33Loo T< ++ ..#.  s/A== B:*B55B:ch t|\}}}||}|rt||||St|i|||Sr)rarGrA)r r<run_name alter_sysr=r:s rrrsN& 38<HhlHhGGr<8DDrc:d}tj|}tj|= t||tj|<S#t$r3}|t |vr |d|dtj d|d}~wwxYw#|tj|<wxYw)NrMz can't find z module in r)rrrarQstrpath)rc main_name saved_mainrrs rrnrns IY'J I,"9-", I  C (#((1+78=@ A  ", Is# A B.A==BBBcHddlm}tjj |}t j |5}||}ddd;t j |5}t|j|d}ddd|S|S#1swYHxYw#1swY|SxYw)Nr) read_coder9) pkgutilr~osrzabspathio open_codecompileread)r@r~ code_pathfr:s r_get_code_from_filers|!&I i A| ! | \\) $1668UF3D% K4K ! % Ks B #B BB!c ^ |d}|jdd}ddlm}||}tj|}t |t drt|}t|||||Stjjd| t\}}}t|5} t|5| jj } t#|| ||||j%cdddcddd tjj'|S#t($rYSwxYw#1swYnxYw dddn #1swYnxYw tjj'|y#t($rYywxYw# tjj'|w#t($rYwwxYwxYw)Nz rIr) get_importer)r>r?)rOrrrfsdecode isinstancer_rrGrrzinsertrnrr#r rCrArDremover]) path_namer<rvr>rimporterr:r r=rErFs rrrs ""3'*H$I&H I&I(DJ'#9-lH)1yJ J 9% (@'A $HhX&+ *)0099  {L$,hBBF$&  I I I   *  +**'&&   *    *  sE;' D?34D)' D?0 E;:D D&%D&)D2 .D?6 E;?EE; E,, E87E8;F,=FF, F)&F,(F))F,rMz!No module specified for execution)file)NNNNN)T)NNF)NN)rimportlib.machineryrXimportlib.utilrr__all__r_r r&rr#rArGrQra Exceptionrlrtrrnrrrlenr+printstderrr!rrrs  *  #Y  & . (V ( /3&*)-4)-,0/3 )4; zMYM+8'+(-E<$/,& 0f z 388}q 1 C HHQKCHHQK( r