grthtrhthjhtyjytjytkergtrhtrjytjerhrfh4:24 29/09/2026o ®û|jŽYã@s6dZddlZddlZddlZddlZddlZddlZejejga da da da dd„Z dd„Zdd„Zd d „Zd d „Zd d„Zd4dd„Zdd„Zdd„Zdd„Zdd„Zdd„Zdd„Zd4dd„Zd4dd „Zd!d"„Zd#d$„Zd%d&„Zd'd(„Zd)d*„Z d+d,„Z!d-d.„Z"d/d0„Z#ej$j%sŒe#ƒd1d2„Z&e'd3kr™e&ƒdSdS)5a¶ Append module search paths for third-party packages to sys.path. **************************************************************** * This module is automatically imported during initialization. * **************************************************************** This will append site-specific paths to the module search path. On Unix (including Mac OSX), it starts with sys.prefix and sys.exec_prefix (if different) and appends lib/python/site-packages. On other platforms (such as Windows), it tries each of the prefixes directly, as well as with lib/site-packages appended. The resulting directories, if they exist, are appended to sys.path, and also inspected for path configuration files. If a file named "pyvenv.cfg" exists one directory above sys.executable, sys.prefix and sys.exec_prefix are set to that directory and it is also checked for site-packages (sys.base_prefix and sys.base_exec_prefix will always be the "real" prefixes of the Python installation). If "pyvenv.cfg" (a bootstrap configuration file) contains the key "include-system-site-packages" set to anything other than "false" (case-insensitive), the system-level prefixes will still also be searched for site-packages; otherwise they won't. All of the resulting site-specific directories, if they exist, are appended to sys.path, and also inspected for path configuration files. A path configuration file is a file whose name has the form .pth; its contents are additional directories (one per line) to be added to sys.path. Non-existing directories (or non-directories) are never added to sys.path; no directory is added to sys.path more than once. Blank lines and lines beginning with '#' are skipped. Lines starting with 'import' are executed. For example, suppose sys.prefix and sys.exec_prefix are set to /usr/local and there is a directory /usr/local/lib/python2.5/site-packages with three subdirectories, foo, bar and spam, and two path configuration files, foo.pth and bar.pth. Assume foo.pth contains the following: # foo package configuration foo bar bletch and bar.pth contains: # bar package configuration bar Then the following directories are added to sys.path, in this order: /usr/local/lib/python2.5/site-packages/bar /usr/local/lib/python2.5/site-packages/foo Note that bletch is omitted because it doesn't exist; bar precedes foo because bar.pth comes alphabetically before foo.pth; and spam is omitted because it is not mentioned in either path configuration file. The readline module is also automatically configured to enable completion for systems that support it. This can be overridden in sitecustomize, usercustomize or PYTHONSTARTUP. Starting Python in isolated mode (-I) disables automatic readline configuration. After these operations, an attempt is made to import a module named sitecustomize, which can perform arbitrary additional site-specific customizations. If this import fails with an ImportError exception, it is silently ignored. éNcCstjjr t|tjd�dSdS)N©Úfile)ÚsysÚflagsÚverboseÚprintÚstderr)Úmessage©r ú+/opt/alt/python310/lib64/python3.10/site.pyÚ_trace\sÿr cGs@tjj|Ž}ztj |¡}Wn tyYnw|tj |¡fS©N)ÚosÚpathÚjoinÚabspathÚOSErrorÚnormcase)ÚpathsÚdirr r r Úmakepathas  ÿrc CsÂttj ¡ƒD]W}d}z|jj}Wnty+z|jjj}Wn ty(YnwYnw|dvr1qz t j   |j ¡|_ Wn tt tfyGYnwz t j   |j¡|_Wqtt tfy^YqwdS)zESet all module __file__ and __cached__ attributes to an absolute pathN>Ú_frozen_importlibÚ_frozen_importlib_external)ÚsetrÚmodulesÚvaluesÚ __loader__Ú __module__ÚAttributeErrorÚ__spec__ÚloaderrrrÚ__file__rÚ TypeErrorÚ __cached__)ÚmÚ loader_moduler r r Ú abs_pathsjs2   ÿ€ýÿÿïr&cCsPg}tƒ}tjD]}t|ƒ\}}||vr| |¡| |¡q|tjdd…<|S)zK Remove duplicate entries from sys.path along with making them absoluteN)rrrrÚappendÚadd)ÚLÚ known_pathsrÚdircaser r r Úremoveduppaths�s    €r,c CsNtƒ}tjD]}ztj |¡rt|ƒ\}}| |¡Wqty$Yqw|S)zEReturn a set containing all existing file system items from sys.path.)rrrrÚexistsrr(r")ÚdÚitemÚ_Úitemcaser r r Ú_init_pathinfo”s    € ÿr2c Csê|dur tƒ}d}nd}tj ||¡}zt |¡}Wn ty$YdSwt|ddƒtj@s7t|ddƒtj @r@t d|›�ƒdSt d|›�ƒz t j t   |¡d d �}Wn ty]YdSw|�‡t|ƒD]z\}}| d ¡roqe| ¡d krvqez-| d ¡r‚t|ƒWqe| ¡}t||ƒ\} } | |vr¢tj | ¡r¢tj | ¡| | ¡Wqetyßtd |d|¡tjd�ddl} | jt ¡ŽD]} |  ¡D] }td|tjd�qÈqÂtdtjd�YnwWdƒn1sêwY|ród}|S)zÖProcess a .pth file within the site-packages directory: For each line in the file, either combine it with sitedir to a path and add that to known_paths, or execute it if it starts with 'import '. NTFÚst_flagsrÚst_file_attributeszSkipping hidden .pth file: zProcessing .pth file: Úlocale©Úencodingú#Ú)zimport zimport z"Error processing line {:d} of {}: érz z Remainder of file ignored) r2rrrÚlstatrÚgetattrÚstatÚ UF_HIDDENÚFILE_ATTRIBUTE_HIDDENr ÚioÚ TextIOWrapperÚ open_codeÚ enumerateÚ startswithÚstripÚexecÚrstriprr-rr'r(Ú ExceptionrÚformatrÚ tracebackÚformat_exceptionÚexc_infoÚ splitlines) ÚsitedirÚnamer*ÚresetÚfullnameÚstÚfÚnÚlinerr+rJÚrecordr r r Ú addpackage¡sl ÿÿ ÿ     € ÿ ÿø€ñrWcCs¨td|›�ƒ|durtƒ}d}nd}t|ƒ\}}||vr(tj |¡| |¡zt |¡}Wn t y9YdSwdd„|Dƒ}t |ƒD]}t |||ƒqE|rRd}|S)zTAdd 'sitedir' argument to sys.path if missing and handle .pth files in 'sitedir'zAdding directory: NTFcSs$g|]}| d¡r| d¡s|‘qS)z.pthÚ.)ÚendswithrD)Ú.0rOr r r Ú és ÿ ÿzaddsitedir..) r r2rrrr'r(rÚlistdirrÚsortedrW)rNr*rPÚ sitedircaseÚnamesrOr r r Ú addsitedirØs(    ÿ r`cCs`tjjrdSttdƒrttdƒrt ¡t ¡krdSttdƒr.ttdƒr.t ¡t ¡kr.dSdS)a,Check if user site directory is safe for inclusion The function tests for the command line flag (including environment var), process uid/gid equal to effective uid/gid. None: Disabled for security reasons False: Disabled by user (command line option) True: Safe and enabled FÚgetuidÚgeteuidNÚgetgidÚgetegidT) rrÚ no_user_siteÚhasattrrrbrardrcr r r r Úcheck_enableusersiteòs rgcCsˆtj dd¡}|r |StjdkrdSdd„}tjdkr(tj d¡p"d}||dƒStjd kr?tjr?|dd tjd tjdd …ƒS|dd ƒS)NÚPYTHONUSERBASEÚvxworkscWstj tjj|Ž¡Sr )rrÚ expanduserr)Úargsr r r Újoinusersz_getuserbase..joinuserÚntÚAPPDATAú~ÚPythonÚdarwinÚLibraryz%d.%déz.local)rÚenvironÚgetrÚplatformrOÚ _frameworkÚ version_info)Úenv_baserlÚbaser r r Ú _getuserbases    ÿ r{cCsftj}tjdkrtj dd¡}|›d|›d�Stjdkr$tjr$|›d�S|›d|d ›d|d ›d �S) NrmrXr9z\Pythonz\site-packagesrqz/lib/python/site-packagesz /lib/pythonrr:z/site-packages)rrxrrOÚwinverÚreplacervrw)ÚuserbaseÚversionÚ ver_nodotr r r Ú _get_path*s  r�cCstdurtƒatS)zËReturns the `user base` directory path. The `user base` directory can be used to store data. If the global variable ``USER_BASE`` is not initialized yet, this function will also set it. N)Ú USER_BASEr{r r r r Ú getuserbase7srƒcCs*tƒ}tdur|durdatSt|ƒatS)z¢Returns the user-specific site-packages directory path. If the global variable ``USER_SITE`` is not initialized yet, this function will also set it. NF)rƒÚ USER_SITEÚENABLE_USER_SITEr�)r~r r r ÚgetusersitepackagesDsþr†cCs,tdƒtƒ}trtj |¡rt||ƒ|S)z†Add a per user site-package to sys.path Each user has its own python directory with site-packages in the home directory. zProcessing user site-packages)r r†r…rrÚisdirr`)r*Ú user_siter r r ÚaddusersitepackagesUs  r‰c CsÆg}tƒ}|dur t}|D]S}|r||vrq | |¡tjg}tjdkr)| d¡tjdkrI|D]}tj  ||dtj dd…d¡}| |¡q0q | |¡|D]}tj  ||d¡}| |¡qPq |S)aReturns a list containing all global site-packages directories. For each directory present in ``prefixes`` (or the global ``PREFIXES``), this function will find its `site-packages` subdirectory depending on the system environment, and will return a list of full paths. NÚlibú/z python%d.%drsz site-packages) rÚPREFIXESr(rÚ platlibdirr'rÚseprrrx)ÚprefixesÚ sitepackagesÚseenÚprefixÚlibdirsÚlibdirrr r r Úgetsitepackagesds2      þ ü  þr•cCs0tdƒt|ƒD] }tj |¡rt||ƒq|S)zAdd site-packages to sys.pathzProcessing global site-packages)r r•rrr‡r`)r*r�rNr r r Úaddsitepackagesˆs    €r–cCs4tjdkrd}nd}t d|¡t_t d|¡t_dS)z­Define new builtins 'quit' and 'exit'. These are objects which make the interpreter exit when called. The repr of each object contains a hint at how it works. ú\zCtrl-Z plus ReturnzCtrl-D (i.e. EOF)ÚquitÚexitN)rrŽÚ _sitebuiltinsÚQuitterÚbuiltinsr˜r™)Úeofr r r Úsetquit‘s ržcCs¤t dtj¡t_tjdd…dkrt dd¡t_nt dd¡t_gg}}ttdƒrGtj   tj ¡}|  d d g¡|  tj   |tj¡|tjg¡t d d ||¡t_dS) z)Set 'copyright' and 'credits' in builtinsÚ copyrightNéÚjavaÚcreditsz?Jython is maintained by the Jython developers (www.jython.org).zž Thanks to CWI, CNRI, BeOpen.com, Zope Corporation and a cast of thousands for supporting Python development. See www.python.org for more information.r!z LICENSE.txtÚLICENSEÚlicensez'See https://www.python.org/psf/license/)ršÚ_PrinterrrŸrœrvr¢rfrrÚdirnamer!ÚextendrÚpardirÚcurdirr¤)ÚfilesÚdirsÚherer r r Ú setcopyright¡s"þ   ýr­cCst ¡t_dSr )ršÚ_HelperrœÚhelpr r r r Ú sethelper¹sr°cCsdd„}|t_dS)ajEnable default readline configuration on interactive prompts, by registering a sys.__interactivehook__. If the readline module can be imported, the hook will set the Tab key as completion key and register ~/.python_history as history file. This can be overridden in the sitecustomize or usercustomize module, or in a PYTHONSTARTUP file. csèddl}z ddl‰ddl}Wn tyYdSwtˆddƒ}|dur-d|vr-ˆ d¡nˆ d¡zˆ ¡Wn tyAYnwˆ ¡dkrrt j   t j   d¡d¡‰zˆ  ˆ¡Wn tycYnw‡‡fd d „}| |¡dSdS) NrÚ__doc__r9Úlibeditzbind ^I rl_completez tab: completeroz.python_historycs&zˆ ˆ¡WdStyYdSwr )Úwrite_history_filerr ©ÚhistoryÚreadliner r Ú write_historyës  ýzCenablerlcompleter..register_readline..write_history)Úatexitr¶Ú rlcompleterÚ ImportErrorr<Úparse_and_bindÚread_init_filerÚget_current_history_lengthrrrrjÚread_history_fileÚregister)r¸r¹Ú readline_docr·r r´r Úregister_readlineÅs8  ÿ     û ÿ ÿëz,enablerlcompleter..register_readlineN)rÚ__interactivehook__)rÁr r r Úenablerlcompleter¼s 0rÃcCsZtj}tjdkrd|vrtjd}t_ntj}tj tj |¡¡\}}tj  |¡}dt_ d}dd„tj  ||¡tj  ||¡fDƒ}|r«|d}d} t |dd ��3} | D](} d | vr{|   d ¡\} }} |  ¡ ¡} |  ¡} | d krt|  ¡} qS| d kr{| t_ qSWdƒn1s†wY|t_t_t|tjgƒ| dkr¥t dtj¡|Stjgad a|S)NrqÚ__PYVENV_LAUNCHER__z pyvenv.cfgcSsg|] }tj |¡r|‘qSr )rrÚisfile)rZÚconffiler r r r[s  ûÿzvenv..rÚtruezutf-8r6ú=zinclude-system-site-packagesÚhomeF)rrtrrvÚ_base_executableÚ executablerÚsplitrr¦Ú_homerÚopenÚ partitionrEÚlowerr’Ú exec_prefixr–rŒÚinsertr…)r*ÚenvrËÚexe_dirr0Ú site_prefixÚ conf_basenameÚcandidate_confsÚ virtual_confÚ system_siterSrUÚkeyÚvaluer r r Úvenv÷sJ   þÿ  €øÿ ýrÜc Có®z$zddl}WWdSty$}z|jdkrn‚WYd}~WdSd}~wwtyV}z&tjjr8tjt ¡Žntj   d|j j |f¡WYd}~dSWYd}~dSd}~ww)z,Run custom site specific code, if available.rNÚ sitecustomizez@Error in sitecustomize; set PYTHONVERBOSE for traceback: %s: %s ) rÞrºrOrHrrrÚ excepthookrLrÚwriteÚ __class__Ú__name__)rÞÚexcÚerrr r r Úexecsitecustomize+ó* þ€þ þÿþ€þråc CrÝ)z,Run custom user specific code, if available.rNÚ usercustomizez@Error in usercustomize; set PYTHONVERBOSE for traceback: %s: %s ) rçrºrOrHrrrrßrLrràrárâ)rçrãrär r r Úexecusercustomize?rærècCs‚tjdd…}tƒ}|tjkrtƒt|ƒ}tdurtƒat|ƒ}t|ƒ}t ƒt ƒt ƒtj j s5tƒtƒtr?tƒdSdS)zÏAdd standard site-specific directories to the module search path. This function is called automatically when this module is imported, unless the python interpreter was started with the -S flag. N)rrr,r&rÜr…rgr‰r–ržr­r°rÚisolatedrÃrårè)Ú orig_pathr*r r r ÚmainSs$  ÿrëcCs\d}tjdd…}|sPtƒ}tƒ}tdƒtjD] }td|fƒqtdƒdd„}td|›d ||ƒ›d �ƒtd |›d ||ƒ›d �ƒtd t›�ƒt d ¡g}d|vr[| t ¡d|vrd| t ¡|r”tt j   |¡ƒtrwt d ¡dStdur‚t d¡dStdur�t d¡dSt d¡dSd dl}t| |tjd t j f¡ƒt d¡dS)Na² %s [--user-base] [--user-site] Without arguments print some useful information With arguments print the value of USER_BASE and/or USER_SITE separated by '%s'. Exit codes with --user-base or --user-site: 0 - user site directory is enabled 1 - user site directory is disabled by user 2 - user site directory is disabled by super user or for security reasons >2 - unknown error r:z sys.path = [z %r,ú]cSs|dur tj |¡r dSdS)Nr-z doesn't exist)rrr‡)rr r r r-Œsz_script..existsz USER_BASE: z (ú)z USER_SITE: zENABLE_USER_SITE: rz --user-basez --user-siteFrséé )rÚargvrƒr†rrr…r™r'r‚r„rÚpathseprÚtextwrapÚdedent)r¯rkÚ user_baserˆrr-Úbufferròr r r Ú_scriptus>    röÚ__main__r )(r±rrrœršr@r=r’rÑrŒr…r„r‚r rr&r,r2rWr`rgr{r�rƒr†r‰r•r–ržr­r°rÃrÜrårèrërÚno_siterörâr r r r ÚsPG   7     $ ;46 ÿ