Files
952-11/env/python/dll/Python312/Lib/__pycache__/site.cpython-312.pyc
T

233 lines
27 KiB
Plaintext
Raw Normal View History

2024-08-19 17:05:14 +08:00
Ë
*åfÐ[ãó^—dZddlZddlZddlZddlZddlZddlZejejga da
da da d„Z
d„Zd„Zd„Zd„Zd„Zdd „Zd
„Zd „Zd „Zd
„Zd„Zd„Zdd„Zdd„Zd„Zd„Zd„Zd„Zd„Z d„Z!d„Z"d„Z#ejHjJse#«d„Z&e'dk(re&«yy)a¶ 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<version>/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
<package>.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.
éNcóp—tjjrt|tj¬«yy)N©Úfile)ÚsysÚflagsÚverboseÚprintÚstderr)Úmessages ú@c:\Users\RCi\AppData\Local\Programs\Python\Python312\Lib\site.pyÚ_tracer
\s"ۆ
‡y�y×ÒÜ
ˆgœCŸJ™JÖ'ðócóÚ—tjj|Ž} tjj|«}|tjj |«fS#t$rYŒ,wxYw©N)ÚosÚpathÚjoinÚabspathÚOSErrorÚnormcase)ÚpathsÚdirs r Úmakepathras[€Ü
�'‰'�,‰,˜Ð
€Cð
Ü�g‰g�o‰o˜cÓ"ˆð ”—‘× Ñ  Ó%Ð %Ð%øô ò
Ù ð
úsžAÁ A*Á)A*có<—ttjj««D]~}d} |jj
}|dvrŒ! tjj|j«|_ tjj|j«|_Œ€y#t $r4 |jjj
}n#t $rYnwxYwYŒ¢wxYw#t ttf$rYŒˆwxYw#t ttf$rYŒòwxYw)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_modules r Ú abs_pathsr*jsõ€ä
”—‘×#Ñ#Ó%Ó
&òˆØˆ
ð ØŸL™L×3Ñ3ˆMð Ð SÑ SØ ð ÜŸ™Ÿ™¨¯©Ó4ˆAŒJð ÜŸ7™7Ÿ?™?¨1¯<©<Ó8ˆA�Lñ!øôò ð
Ø !§
¡
× 1Ñ 1× <Ñ <‘
øÜ!ò
Ùð
üð ûô¤¬Ð3ò Ù ð ûô¤¬Ð3ò Ù ð úsY®B*Á
.C*Á9.DÂ* C'Â4 CÃC'à C!ÃC'à C!Ã!C'Ã&C'Ã*DÄDÄDÄDcóØ—g}t«}tjD]7}t|«\}}||vsŒ|j |«|j |«Œ9|tjdd|S)zK Remove duplicate entries from sys.path along with making them
absoluteN)rrrrÚappendÚadd)ÚLÚ known_pathsrÚdircases r Úremoveduppathsr1�sf€ð
€AÜ“%€KÜ�x‰xò%ˆô  “}‰ ˆˆWØ ˜+Ò %Ø
�H‰H�SŒMØ �O‰O˜GÕ $ð%ð„C‡H�H‰Q€KØ Ðrcóà—t«}tjD]A} tjj |«rt |«\}}|j
|«ŒC|S#t$rYŒQwxYw)zEReturn a set containing all existing file system items from sys.path.)rrrrÚexistsrr-r&)ÚdÚitemÚ_Úitemcases r Ú_init_pathinfor8”se€ä ‹€AÜ—‘òˆð Ü�w‰w�~‰~˜dÔ#Ü& t›n‘ ��8Ø—‘�h”øð ð
€Høôò Ù ð úsŸ>A!Á! A-Á,A-c óú—|€
t«}d}nd}tjj||«} tj|«}t
|dd«tjzst
|dd«tjzrtd|›�«ytd|›�« tjtj|«d ¬
«}|5t|«D]»\}}|jd «rŒ|j!«d k(rŒ, |jd
«r t#|«ŒJ|j%«}t'||«\} }
|
|vrOtjj)| «r0t*jj-| «|j/|
«Œ½ddd«|rd}|S#t
$rYywxYw#t
$rYywxYw#t0$r¡} t3dj5|dz|«t*j6¬«ddl} | j;| «D]5}
|
j=«D] }t3d|zt*j6¬«Œ"Œ7t3dt*j6¬«Yd} ~ ŒÑd} ~ wwxYw#1swYŒÚxYw)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)r8rrrÚlstatrÚgetattrÚstatÚ UF_HIDDENÚFILE_ATTRIBUTE_HIDDENr
ÚioÚ
TextIOWrapperÚ open_codeÚ enumerateÚ
startswithÚstripÚexecÚrstriprr3rr,r-Ú Exceptionr Úformatr
Ú tracebackÚformat_exceptionÚ
splitlines)ÚsitedirÚnamer/ÚresetÚfullnameÚstÚfÚnÚlinerr0ÚexcrQÚrecords r Ú
addpackager^¡s:€ð
ÐÜ$Ó&ˆ ؉àˆÜ�w‰w�|‰|˜G TÓ*€HðÜ
�X‰X�hÓ
ˆô
��Z Ó #¤d§n¡nÒ 4Ü �Ð)¨1Ó -´×0JÑ0JÒ JÜÐ,¨X¨LÐ9Ô:ØÜ
Ð
# H <Ð 0Ô1ðô
× Ñ œRŸ\™\¨(Ó3¸hÔ Gˆð
ñÜ  “|ò ‰GˆAˆtØ�‰˜sÔ#ØØ�z‰z‹|˜rÒ!Øð
Ø—?‘?Ð#:Ô;ܘ”JØØ—{‘{“}�Ü'¨°Ó6‘ ��WØ +Ñ-´"·'±'·.±.ÀÔ2EÜ—H‘H—O‘O CÔ(Ø—O‘O GÔ,øð ÷ñ0
؈ Ø ÐøôO òÙðûô òÙðûô"ò
ÜÐ;×BÑBÀ1ÀQÁ3ÈÓQÜŸ:™:õ'ã Ø'×8Ñ8¸Ó=ò:�FØ &× 1Ñ 1Ó 3ò:˜Ü˜d 4™i¬c¯j©jÖ9ñ:ð:ôÐ3¼#¿*¹*ÕEÝûð
ú÷ðúsg³F&Â"*F5Ã8I1ÄGÄ#I1Ä$A2GÆI1Æ& F2Æ1F2Æ5 GÇGÇ I.Ç
BI)É#I1É)I.É.I1É1I:cóÀ—td|›�«|€
t«}d}nd}t|«\}}||vr0tjj |«|j
|« tj|«}|D�cgc]&}|jd«r|jd«s|‘Œ(}}t|«D]}t|||«Œ|rd}|S#t$rYywxYwcc}w)zTAdd 'sitedir' argument to sys.path if missing and handle .pth files in
'sitedir'zAdding directory: NTFz.pthú.)r
r8rrrr,r-rÚlistdirrÚendswithrKÚsortedr^)rTr/rVÚ sitedircaseÚnamesrUs r Ú
addsitedirrfØsð€ô Ð
 ˜{Ð +Ô,ØÐÜ$Ó&ˆ ؉àˆÜ# GÓ,Ñ€Gˆ[Ø ˜+Ñ %Ü �‰�‰˜Ô Ø�‰˜ Ô$ðÜ—
‘
˜7Ó#ˆð$ö
D�dØ—
‘
˜fÔ%¨d¯o©o¸cÔ.Bòð
D€Eð
Dä�u“
ò/ˆÜ�7˜D +Õ.ð/á Øˆ Ø Ðøô òÙðüò
DsÁ#C Á<+CÃ CÃCcób—tjjryttd«r:ttd«r*t j
«t j «k7ryttd«r:ttd«r*t j«t j«k7ryy)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Úhasattrrrirhrkrj©rr Úcheck_enableusersiteroòsk€ô ‡y�y×ÒØäŒr�8Ô¤¬¨YÔ!7ä
�:‰:‹<œ2Ÿ9™9›;Ò &ØÜŒr�8Ô¤¬¨YÔ!7ä
�:‰:‹<œ2Ÿ9™9›;Ò &Øà rc ó¦—tjjdd«}|r|Stjdvryd„}tj
dk(r,tjjd«xsd}||d«Stjdk(r=tj r-|dd tj d
tjdd z«S|dd «S)
NÚPYTHONUSERBASE>ÚwasiÚvxworksÚ
emscriptencót—tjjtjj|Ž«Sr)rrÚ
expanduserr)Úargss r Újoinuserz_getuserbase.<locals>.joinusers$€Ü�w‰w×!Ñ!¤"§'¡'§,¡,°Ð"5Ó6Ð6rÚntÚAPPDATAú~ÚPythonÚdarwinÚLibraryz%d.%déz.local)rÚenvironÚgetrÚplatformrUÚ
_frameworkÚ version_info)Úenv_baserxÚbases r Ú _getuserbaser‡s´€Ü�z‰z�~‰~Ð.°Ó5€HÙØˆô ‡|�|Ð8Ñ8Øò7ô
‡w�w�$‚Ü�z‰z�~‰~˜iÓ(Ò/¨CˆÙ˜˜hÓ'Ð'ä
‡|�|�xÒ¤C§N¢NÙ˜˜Y¬¯©Ø¤#×"2Ñ"2°2°AÐ"6Ñ6ó8ð 8ñ �C˜Ó "Ð"rcó
—tj}tjdk(r(tjj dd«}|›d|›d�Stj dk(rtjr|›d�S|›d|d ›d|d
›d �S) Nryr`r@z\Pythonz\site-packagesr}z/lib/python/site-packagesz /lib/pythonrrAz/site-packages)rr„rrUÚwinverÚreplacer‚rƒ)ÚuserbaseÚversionÚ ver_nodots r Ú _get_pathrŽ*s‚€Ü×Ñ€Gä ‡w�w�$‚Ü—J‘J×&Ñ& s¨BÓ/ˆ Ø�˜8 I ;¨oÐ>Ð>ä
‡|�|�xÒ¤C§N¢NØ�Ð4Ð5Ð5àˆZ�{ 7¨1¡: ,¨a°¸±
¨|¸>Ð JÐJrcó.—t€
t«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.
)Ú USER_BASEr‡rnrr Ú getuserbaser‘7s€ôÐÜ “Nˆ Ü ÐrcóX—t«}t€|€datSt|«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.
F)r‘Ú USER_SITEÚENABLE_USER_SITErŽ)r‹s r Úgetusersitepackagesr•Ds7€ô‹}€HäÐØ Ð Ø$Ð ô Ðô" (Ó+ˆIä Ðrcó’—td«t«}tr+tjj |«r t
||«|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Úisdirrf)r/Ú user_sites r Úaddusersitepackagesr™Us7€ô Ð *Ô+Ü#Ó%€IåœBŸG™GŸM™M¨)Ô4Ü�9˜kÔ*Ø Ðrc
ó—g}t«}|€t}|D]ò}|r||vrŒ
|j|«tjdk(r„t
j g}t
j dk7r|jd«|D]I}tjj||dt
jddzd«}|j|«ŒKŒ²|j|«|jtjj|dd««Œô|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ú/Úlibz python%d.%drz
site-packagesÚLib) rÚPREFIXESr-rÚseprÚ
platlibdirr,rrr„)ÚprefixesÚ sitepackagesÚseenÚprefixÚlibdirsÚlibdirrs r Úgetsitepackagesr§ds÷€ð€LÜ ‹5€DàÐ܈àòNˆÙ˜ 4™Ø Ø �‰�Ôä
�6‰6�SŠ=Ü—~‘~Ð&ˆGÜ�~‰~ Ò&Ø—‘˜uÔ%à!ò
*�Ü—w‘w—|‘| F¨FØ$1´C×4DÑ4DÀRÀaÐ4HÑ$HØ$3ó5�ð×#Ñ# DÕ)ñ 
*ð
× Ñ  Ô 'Ø × Ñ ¤§¡§ ¡ ¨V°U¸OÓ LÕ Mð#Nð$ Ðrcó”—td«t|«D].}tjj |«sŒ#t ||«Œ0|S)zAdd site-packages to sys.pathzProcessing global site-packages)r
r§rrr—rf)r/r¡rTs r Úaddsitepackagesr©…sA€ä
Ð ,Ô-Ü" 8Ó,ò-ˆÜ
�7‰7�=‰=˜Õ !Ü �w  Õ ,ð-ð Ðrcó°—tjdk(rd}nd}tjd|«t_tjd|«t_y)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­)Úeofs r Úsetquitr²ŽsA€ô
‡v�v�‚~Ø"‰à!ˆä!×)Ñ)¨&°#Ó6„H„MÜ!×)Ñ)¨&°#Ó6„H…MrcóL—tjdtj«t_tjdd«t_gg}}t
tdd«}|s=ttd«r-tjjtj«}|ra|jddg«|jtjj|tj«|tjg«tjd d
||«t_y) z)Set 'copyright' and 'credits' in builtinsÚ copyrightÚcreditszž Thanks to CWI, CNRI, BeOpen.com, Zope Corporation and a cast of thousands
for supporting Python development. See www.python.org for more information.Ú _stdlib_dirNr%z LICENSE.txtÚLICENSEÚlicensez'See https://www.python.org/psf/license/)r®Ú_Printerrr´r°rµrCrmrrÚdirnamer%ÚextendrÚpardirÚcurdirr¸)ÚfilesÚdirsÚheres r Ú setcopyrightrÁžsЀä&×/Ñ/° ¼S¿]¹]ÓK„HÔÜ$×-Ñ-¨ið:TóU„HÔð�bˆ4€Eô ”3˜
 tÓ ,€DÙ ”GœB 
Ô+Ü�w‰w�‰œrŸ{™{Ó+ˆÙ Ø
� ‰ �m YÐ/Ô0Ø � ‰ ”R—W‘W—\‘\ $¬¯ © Ó2°D¼"¿)¹)ÐDÔEÜ$×-Ñ-ØØ1Ø
ˆtó„HÕrcó>—tj«t_yr)r®Ú_Helperr°Úhelprnrr Ú sethelperrųs€Ü!×)Ñ)Ó+„H…Mrcó —d„}|t_y)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.