b374k
m1n1 1.01
Apache/2.2.15 (CentOS)
Linux obd60-6c49958d75-2q7cw 5.4.0-174-generic #193-Ubuntu SMP Thu Mar 7 14:29:28 UTC 2024 x86_64
uid=48(apache) gid=48(apache) groups=48(apache)
server ip : 104.21.65.202 | your ip : 10.244.126.0
safemode OFF
 >  / usr / lib64 / python2.6 /
Filename/usr/lib64/python2.6/site.pyo
Size18.38 kb
Permissionrw-r--r--
Ownerapache
Create time23-Dec-2025 17:41
Last modified20-Jun-2019 19:45
Last accessed22-Apr-2026 05:30
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
Ñò
§ÚêLc@sTdZddkZddkZddkZeieigZdada da
d�Z d�Z d�Z
d�Zd�Zd�Zdd �Zd
�Zd �Zd �Zd
�Zd�Zdefd��YZd�Zdefd��YZd�Zd�Zd�Zd�Zd�Zd�Z e �d�Z!e"djo e!�ndS(sN Append module search paths for third-party packages to sys.path.

****************************************************************
* This module is automatically imported during initialization. *
****************************************************************

In earlier versions of Python (up to 1.5a3), scripts or modules that
needed to use site-specific modules would place ``import site''
somewhere near the top of their code. Because of the automatic
import, this is no longer necessary (but code that does it still
works).

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 as well as lib/site-python.
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.

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.

After these path manipulations, 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.

iÿÿÿÿNcGs4tiitii|��}|tii|�fS(N(tostpathtabspathtjointnormcase(tpathstdir((s/usr/lib64/python2.6/site.pytmakepathKscCsjxctii�D]R}t|d�oqnytii|i�|_Wqtj
o
qqXqWdS(s6Set all module' __file__ attribute to an absolute patht
__loader__N( tsystmodulestvaluesthasattrRRRt__file__tAttributeError(tm((s/usr/lib64/python2.6/site.pyt abs__file__PscCsng}t�}xNtiD]C}t|�\}}||jo|i|�|i|�qqW|ti(|S(sK Remove duplicate entries from sys.path along with making them
absolute(tsetR RRtappendtadd(tLt known_pathsRtdircase((s/usr/lib64/python2.6/site.pytremoveduppaths[s 



cCs�ddkl}d|�tif}ttd�o|d7}ntiitiitid�|�}tii |�dS(sbAppend ./build/lib.<platform> in case we're running in the build dir
(especially for Guido :-)iÿÿÿÿ(t get_platformsbuild/lib.%s-%.3stgettotalrefcounts-pydebugN(
tdistutils.utilRR tversionR RRRtdirnameR(Rts((s/usr/lib64/python2.6/site.pyt addbuilddiros (cCstt�}xdtiD]Y}y:tii|�o#t|�\}}|i|�nWqtj
o
qqXqW|S(sDReturn a set containing all existing directory entries from sys.path(RR RRtisdirRRt TypeError(tdRR((s/usr/lib64/python2.6/site.pyt_init_pathinfozs 
 c Bs9|djoe�d}nd}eii||�}ye|d�}Wnej
odSX|ii�z­x¦|D]�}|i d�oq|n|i d�o|dUq|n|i
�}e ||�\}}||jo4eii |�o!e
ii|�|i|�q|q|WWdQX|o
d}n|S( sÖ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 '.
iitrUNt#simport simport (simport simport (tNoneR"RRRtopentIOErrort__exit__t __enter__t
startswithtrstripRtexistsR RR( tsitedirtnameRtresettfullnametftlineRR((s/usr/lib64/python2.6/site.pyt
addpackage�s2

  
c
Cs|djot�}d}nd}t|�\}}||jotii|�nyti|�}Wntij
odSXti d}g}|D]!}|i
|�o ||q�q�~}x$t |�D]}t |||�qÕW|o
d}n|S(sTAdd 'sitedir' argument to sys.path if missing and handle .pth files in
'sitedir'iiNtpth(
R%R"RR RRRtlistdirterrortextseptendswithtsortedR3(R-RR/t sitedircasetnamestdotptht_[1]R.((s/usr/lib64/python2.6/site.pyt
addsitedir§s&
 


5

cCs�tiiotSttd�o2ttd�o"ti�ti�jodSnttd�o2ttd�o"ti �ti
�jodSnt S(s,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
tgetuidtgeteuidtgetgidtgetegidN( R tflagst no_user_sitetFalseR RR@R?R%RBRAtTrue(((s/usr/lib64/python2.6/site.pytcheck_enableusersite¿s
    cCstiidd�}d�}tidjohtiid�pd}|o|n
||d�atiitdti dti dd �a
nD|o|n
|dd
�atiitd d ti d
d �a
t o$tii t
�ot
t
|�n|S(s'Add a per user site-package to sys.path

Each user has its own python directory with site-packages in the
home directory.

USER_BASE is the root directory for all Python versions

USER_SITE is the user specific site-packages directory

USER_SITE/.. can be used for data.
tPYTHONUSERBASEcWstiitii|��S(N(RRt
expanduserR(targs((s/usr/lib64/python2.6/site.pytjoinuserçstnttAPPDATAt~tPythoniis
site-packagess.localtlibtpythoniN(RtenvirontgetR%R.t USER_BASERRR Rt USER_SITEtENABLE_USER_SITERR>(Rtenv_baseRKtbase((s/usr/lib64/python2.6/site.pytaddusersitepackagesØs
  
 c Csçg}g}x�tD]�}| p
||joqn|i|�tidjo#|itii|dd��nÙtidjo}|itii|ddtid d��|itii|d dtid d��|itii|d d
��nL|i|�|itii|dd��|itii|d d��tid joMd |jo<|itii tiid
ddtid d���qªqqWx2|D]*}tii
|�ot ||�qµqµW|S(s8Add site-packages (and possibly site-python) to sys.pathtos2emxtriscostLibs
site-packagest/tlib64RQiRPs site-pythontdarwinsPython.frameworkRNtLibraryRO(sos2emxsriscos( tPREFIXESRR tplatformRRRtsepRRIRR>(RtsitedirstseentprefixR-((s/usr/lib64/python2.6/site.pytaddsitepackagesÿs>
#

#

 #cCsqtiitidd�}tidid�}|do|i|�n ||d<di|�tid<dS(sEThe OS/2 EMX port has optional extension modules that do double duty
as DLLs (and must use the .DLL file extension) for other extensions.
The library search path needs to be amended so these will be found
during module import. Use BEGINLIBPATH so that these are at the start
of the library search path.

R\s lib-dynloadt BEGINLIBPATHt;iÿÿÿÿN(RRRR RfRRtsplitR(tdllpathtlibpath((s/usr/lib64/python2.6/site.pytsetBEGINLIBPATH)s  
csxtidjo
d�n!tidjo
d�nd�dtf�fd��Y}|d�t_|d �t_d
S( snDefine new built-ins 'quit' and 'exit'.
These are simply strings that display a hint on how to exit.

t:sCmd-Qs\sCtrl-Z plus ReturnsCtrl-D (i.e. EOF)tQuittercs,eZd�Z�fd�Zdd�ZRS(cSs
||_dS(N(R.(tselfR.((s/usr/lib64/python2.6/site.pyt__init__Gscsd|i�fS(NsUse %s() or %s to exit(R.(Rp(teof(s/usr/lib64/python2.6/site.pyt__repr__IscSs+ytii�WnnXt|��dS(N(R tstdintcloset
SystemExit(Rptcode((s/usr/lib64/python2.6/site.pyt__call__Ks
N(t__name__t
__module__RqRsR%Rx((Rr(s/usr/lib64/python2.6/site.pyRoFs tquittexitN(RRctobjectt __builtin__R{R|(Ro((Rrs/usr/lib64/python2.6/site.pytsetquit:s


t_PrintercBs>eZdZdZddd�Zd�Zd�Zd�ZRS(sninteractive prompt objects for printing the license text, a list of
contributors and the copyright notice.icCs1||_||_||_||_d|_dS(N(t_Printer__namet_Printer__datat_Printer__filest_Printer__dirsR%t_Printer__lines(RpR.tdatatfilestdirs((s/usr/lib64/python2.6/site.pyRq]s
    cCsÚ|iodSd}x�|iD]{}xf|iD][}tii||�}y*t|d�}|i�}|i �PWq/t
j
oq/Xq/W|oPqqW|p
|i }n|i d�|_t
|i�|_dS(NR#s
(R�R%R�R�RRRtfiletreadRuR'R�Rjtlent_Printer__linecnt(RpR�Rtfilenametfp((s/usr/lib64/python2.6/site.pyt__setupds*


 
  
cCsJ|i�t|i�|ijodi|i�Sd|ifdSdS(Ns
s!Type %s() to see the full %s texti(t_Printer__setupR�R�tMAXLINESRR�(Rp((s/usr/lib64/python2.6/site.pyRsys
cCsÅ|i�d}d}x¨y1x*t|||i�D]}|i|GHq3WWntj
oPqX||i7}d}x5|djo't|�}|djo
d}qwqwW|djoPqqdS(Ns0Hit Return for more, or q (and Return) to quit: ittq(R�R�(R�trangeR�R�t
IndexErrorR%t raw_input(Rptprompttlinenotitkey((s/usr/lib64/python2.6/site.pyRx�s&


 

(((RyRzt__doc__R�RqR�RsRx(((s/usr/lib64/python2.6/site.pyR�Ws   cCs­tdti�t_tid djotdd�t_ntdd�t_tiiti �}tddti
d d
gtii |ti �|ti
g�t_d S( s,Set 'copyright' and 'credits' in __builtin__t copyrightitjavatcreditss?Jython is maintained by the Jython developers (www.jython.org).s� Thanks to CWI, CNRI, BeOpen.com, Zope Corporation and a cast of thousands
for supporting Python development. See www.python.org for more information.tlicenses+See http://www.python.org/%.3s/license.htmls LICENSE.txttLICENSEN(R�R R�R~RbR�RRRR
RRtpardirtcurdirR�(there((s/usr/lib64/python2.6/site.pyt setcopyright�s 
 t_HelpercBs eZdZd�Zd�ZRS(sYDefine the built-in 'help'.
This is a wrapper around pydoc.help (with a twist).

cCsdS(NsHType help() for interactive help, or help(object) for help about object.((Rp((s/usr/lib64/python2.6/site.pyRs¬scOsddk}|i||�S(Niÿÿÿÿ(tpydocthelp(RpRJtkwdsR¦((s/usr/lib64/python2.6/site.pyRx¯s (RyRzR�RsRx(((s/usr/lib64/python2.6/site.pyR¥¦s cCst�t_dS(N(R¥R~R§(((s/usr/lib64/python2.6/site.pyt sethelper³scCs§tidjo�ddk}ddk}|i�d}|id�oWy|i|�Wq�tj
o3ddk}|i |i
|<d|i i |<q�Xq£ndS(s·On Windows, some default encodings are not provided by Python,
while they are always available as "mbcs" in each locale. Make
them usable by aliasing to "mbcs" in such a case.twin32iÿÿÿÿNitcptmbcs( R RbtlocaletcodecstgetdefaultlocaleR*tlookupt LookupErrort encodingst_unknownt_cachetaliases(R­R®tencR²((s/usr/lib64/python2.6/site.pyt aliasmbcs¶s cCs(d}|djoti|�ndS(s�Set the string encoding used by the Unicode implementation. The
default is 'ascii', but if you're willing to experiment, you can
change this.tasciiN(R tsetdefaultencoding(tencoding((s/usr/lib64/python2.6/site.pyt setencodingÅs
cCsmyddk}WnVtj
onEtj
o8tiiotiti��qitidIJnXdS(s,Run custom site specific code, if available.iÿÿÿÿNs3'import sitecustomize' failed; use -v for traceback( t
sitecustomizet ImportErrort ExceptionR RCtverboset
excepthooktexc_infotstderr(R¼((s/usr/lib64/python2.6/site.pytexecsitecustomizeÙs
cCsmyddk}WnVtj
onEtj
o8tiiotiti��qitidIJnXdS(s,Run custom user specific code, if available.iÿÿÿÿNs3'import usercustomize' failed; use -v for traceback( t
usercustomizeR½R¾R RCR¿RÀRÁRÂ(RÄ((s/usr/lib64/python2.6/site.pytexecusercustomizeçs
cCsüt�t�}tidjo5tio+tiitid�djo t�ntdjo
t
�ant |�}t |�}ti
djo t�nt�t�t�t�t�t�to t�nttd�o
t`ndS(NtposixiÿÿÿÿtModulesRZR¹(RRRR.R RtbasenameRRVR%RGRYRgRbRmRR¤R©R·R»RÃRÅR R¹(R((s/usr/lib64/python2.6/site.pytmainõs*   

    cCs®d}tid}|p�dGHxtiD]}d|fGHq)WdGHdttiit�odndfGHd ttiit�odndfGHd
tGHtid �ng}d |jo|i t�nd
|jo|i t�n|ovti
i |�GHtotid �qªtt jotid�qªtdjotid�qªtid�n<ddk}|i|tid ti
f�GHtid�dS(Ns² %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 - uses site directory is disabled by super user
or for security reasons
>2 - unknown error
is sys.path = [s %r,t]sUSER_BASE: %r (%s)R,s
doesn't existsUSER_SITE: %r (%s)sENABLE_USER_SITE: %ris --user-bases --user-siteiiiÿÿÿÿi
(R targvRRTRRRURVR|RtpathsepRRER%ttextwraptdedent(R§RJRtbufferRÍ((s/usr/lib64/python2.6/site.pyt_scripts>

## 



 "t__main__(#R�R RR~Rft exec_prefixRaR%RVRURTRRRRR"R3R>RGRYRgRmRR}R�R¤R¥R©R·R»RÃRÅRÉRÐRy(((s/usr/lib64/python2.6/site.pyt<module>;s@     
  ' *  = 
      1