Your IP : 216.73.216.25
�
��f�Uc@s�dZddlZddlZddlZddlZejejgada da
dadd�Zdd�Z
dd�Zd d
�Zdd�Zdd
d�Zdd�Zdd�Zdd�Zdd�Zddd�Zddd�Zdd�Zdd�ZGdd �d e�Zd!d"�ZGd#d$�d$e�Zd%d&�Zd'd(�Zej d)�Z!d*d+�Z"d,d-�Z#d.d/�Z$d0d1�Z%ej&j's�e%�nd2d3�Z(e)d4kr�e(�ndS(5u�
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 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.
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 and site-python (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.
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.
iNcGsStjj|�}ytjj|�}Wntk
r<YnX|tjj|�fS(N(uosupathujoinuabspathuOSErrorunormcase(upathsudir((u)/opt/alt/python33/lib64/python3.3/site.pyumakepathVs
umakepathcCs�x�ttjj��D]�}tt|dd�dd�dkrFqnytjj|j �|_ Wnt
tfk
r|YnXytjj|j�|_Wqt
tfk
r�YqXqWdS(uESet all module __file__ and __cached__ attributes to an absolute pathu
__loader__u
__module__u_frozen_importlibN(
usetusysumodulesuvaluesugetattruNoneuosupathuabspathu__file__uAttributeErroruOSErroru
__cached__(um((u)/opt/alt/python33/lib64/python3.3/site.pyu abs_paths_s u abs_pathscCsug}t�}xLtjD]A}t|�\}}||kr|j|�|j|�qqW|tjdd�<|S(uK Remove duplicate entries from sys.path along with making them
absoluteN(usetusysupathumakepathuappenduadd(uLuknown_pathsudirudircase((u)/opt/alt/python33/lib64/python3.3/site.pyuremoveduppathsos
uremoveduppathscCsqt�}xatjD]V}y8tjj|�rPt|�\}}|j|�nWqtk
rhwYqXqW|S(uDReturn a set containing all existing directory entries from sys.path(usetusysupathuosuisdirumakepathuaddu TypeError(ududirudircase((u)/opt/alt/python33/lib64/python3.3/site.pyu_init_pathinfo�s
u_init_pathinfocCs�|dkrt�d}nd}tjj||�}yt|d�}Wntk
rbdSYnX|�_xWt|�D]I\}}|jd�r�qwny�|jd�r�t |�wwn|j
�}t||�\}} | |krtjj|�rt
jj|�|j| �nWqwtk
r�tdj|d|�d t
j�ddl}
xK|
jt
j��D]4}x+|j�D]}td
|d t
j�q�WqoWtdd t
j�PYqwXqwWWdQX|r�d}n|S(
u�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 '.
iiurNu#uimport uimport u"Error processing line {:d} of {}:
ufileu u
Remainder of file ignored(uimport uimport (uNoneu_init_pathinfouosupathujoinuopenuIOErroru enumerateu
startswithuexecurstripumakepathuexistsusysuappenduaddu Exceptionuprintuformatustderru tracebackuformat_exceptionuexc_infou
splitlines(usitedirunameuknown_pathsuresetufullnameufunulineudirudircaseu tracebackurecord((u)/opt/alt/python33/lib64/python3.3/site.pyu
addpackage�sD
u
addpackagec
Cs�|dkrt�}d}nd}t|�\}}||krbtjj|�|j|�nytj|�}Wntj k
r�dSYnXdd�|D�}x$t
|�D]}t|||�q�W|r�d}n|S(uTAdd 'sitedir' argument to sys.path if missing and handle .pth files in
'sitedir'iiNcSs%g|]}|jd�r|�qS(u.pth(uendswith(u.0uname((u)/opt/alt/python33/lib64/python3.3/site.pyu
<listcomp>�s uaddsitedir.<locals>.<listcomp>(uNoneu_init_pathinfoumakepathusysupathuappenduadduosulistdiruerrorusortedu
addpackage(usitediruknown_pathsuresetusitedircaseunamesuname((u)/opt/alt/python33/lib64/python3.3/site.pyu
addsitedir�s$ u
addsitedircCs�tjjrdSttd�rMttd�rMtj�tj�krMdSnttd�r�ttd�r�tj �tj
�kr�dSndS(u,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
ugetuidugeteuidugetgidugetegidFNT(usysuflagsuno_user_siteuFalseuhasattruosugeteuidugetuiduNoneugetegidugetgiduTrue(((u)/opt/alt/python33/lib64/python3.3/site.pyucheck_enableusersite�s
ucheck_enableusersitecCs0tdk rtSddlm}|d�atS(u�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.
i(uget_config_varuuserbaseN(u USER_BASEuNoneu sysconfiguget_config_var(uget_config_var((u)/opt/alt/python33/lib64/python3.3/site.pyugetuserbase�s
ugetuserbasecCs�t�}td k rtSddlm}tjdkrjddlm}|d�rj|dd�atSn|ddtj �atS(
u�Returns the user-specific site-packages directory path.
If the global variable ``USER_SITE`` is not initialized yet, this
function will also set it.
i(uget_pathudarwin(uget_config_varuPYTHONFRAMEWORKupurelibuosx_framework_useru%s_userN(
ugetuserbaseu USER_SITEuNoneu sysconfiguget_pathusysuplatformuget_config_varuosuname(u user_baseuget_pathuget_config_var((u)/opt/alt/python33/lib64/python3.3/site.pyugetusersitepackages�s ugetusersitepackagescCs5t�}tr1tjj|�r1t||�n|S(u�Add a per user site-package to sys.path
Each user has its own python directory with site-packages in the
home directory.
(ugetusersitepackagesuENABLE_USER_SITEuosupathuisdiru
addsitedir(uknown_pathsu user_site((u)/opt/alt/python33/lib64/python3.3/site.pyuaddusersitepackagess uaddusersitepackagesc
Cs�g}t�}|dkr$t}nx�|D]�}|s+||krJq+n|j|�tjdkr�|jtjj |dd��n�tj
dkr|jtjj |ddtjdd �d��|jtjj |d
dtjdd �d��|jtjj |d
d��nK|j|�|jtjj |dd��|jtjj |d
d��tjdkr+d
dlm
}|d�}|r�|jtjj d|tjdd �d��q�q+q+W|S(u=Returns a list containing all global site-packages directories
(and possibly site-python).
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.
uos2emxuriscosuLibu
site-packagesu/ulib64upythonNiulibusite-pythonudarwini(uget_config_varuPYTHONFRAMEWORKu/Library(uos2emxuriscos(usetuNoneuPREFIXESuaddusysuplatformuappenduosupathujoinusepuversionu sysconfiguget_config_var(uprefixesusitepackagesuseenuprefixuget_config_varu framework((u)/opt/alt/python33/lib64/python3.3/site.pyugetsitepackagess:
"
"
$ugetsitepackagescCs=x6t|�D](}tjj|�r
t||�q
q
W|S(u8Add site-packages (and possibly site-python) to sys.path(ugetsitepackagesuosupathuisdiru
addsitedir(uknown_pathsuprefixesusitedir((u)/opt/alt/python33/lib64/python3.3/site.pyuaddsitepackagesHsuaddsitepackagescCsotjjtjdd�}tjdjd�}|drK|j|�n
||d<dj|�tjd<dS( uEThe 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.
uLibulib-dynloaduBEGINLIBPATHu;iNi����i����(uosupathujoinusysuprefixuenvironusplituappend(udllpathulibpath((u)/opt/alt/python33/lib64/python3.3/site.pyusetBEGINLIBPATHPs
usetBEGINLIBPATHcsttjdkrd�ntjdkr0d�nd�G�fdd�dt�}|d�t_|d �t_d
S(u�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.
u:uCmd-Qu\uCtrl-Z plus ReturnuCtrl-D (i.e. EOF)csA|EeZdZdd�Z�fdd�Zddd�ZdS(usetquit.<locals>.QuittercSs
||_dS(N(uname(uselfuname((u)/opt/alt/python33/lib64/python3.3/site.pyu__init__psu!setquit.<locals>.Quitter.__init__csd|j�fS(NuUse %s() or %s to exit(uname(uself(ueof(u)/opt/alt/python33/lib64/python3.3/site.pyu__repr__rsu!setquit.<locals>.Quitter.__repr__c Ss,ytjj�WnYnXt|��dS(N(usysustdinucloseu
SystemExit(uselfucode((u)/opt/alt/python33/lib64/python3.3/site.pyu__call__ts
u!setquit.<locals>.Quitter.__call__N(u__name__u
__module__u__qualname__u__init__u__repr__uNoneu__call__(u
__locals__(ueof(u)/opt/alt/python33/lib64/python3.3/site.pyuQuitterosuQuitteruquituexitN(uosusepuobjectubuiltinsuquituexit(uQuitter((ueofu)/opt/alt/python33/lib64/python3.3/site.pyusetquitas
usetquitcBsV|EeZdZdZdZffdd�Zdd�Zdd�Zd d
�ZdS(u_Printeruninteractive prompt objects for printing the license text, a list of
contributors and the copyright notice.icCs1||_||_||_||_d|_dS(N(u_Printer__nameu_Printer__datau_Printer__filesu_Printer__dirsuNoneu_Printer__lines(uselfunameudataufilesudirs((u)/opt/alt/python33/lib64/python3.3/site.pyu__init__�s
u_Printer.__init__c
Cs�|jr
dSd}x�|jD]x}xe|jD]Z}tjj||�}y*t|d�}|j�}|j �PWq-t
k
r�Yq-Xq-W|rPqqW|s�|j}n|jd�|_t
|j�|_dS(Nuru
(u_Printer__linesuNoneu_Printer__dirsu_Printer__filesuosupathujoinuopenureaducloseuIOErroru_Printer__datausplitulenu_Printer__linecnt(uselfudataudirufilenameufp((u)/opt/alt/python33/lib64/python3.3/site.pyu__setup�s&
u_Printer.__setupcCsH|j�t|j�|jkr2dj|j�Sd|jfdSdS(Nu
u!Type %s() to see the full %s texti(u_Printer__setupulenu_Printer__linesuMAXLINESujoinu_Printer__name(uself((u)/opt/alt/python33/lib64/python3.3/site.pyu__repr__�s
u_Printer.__repr__cCs�|j�d}d}x�y6x/t|||j�D]}t|j|�q3WWntk
rdPYqX||j7}d}x1|dkr�t|�}|dkr{d}q{q{W|dkrPqqdS(Nu0Hit Return for more, or q (and Return) to quit: iuuq(uuq(u_Printer__setupurangeuMAXLINESuprintu_Printer__linesu
IndexErroruNoneuinput(uselfupromptulinenouiukey((u)/opt/alt/python33/lib64/python3.3/site.pyu__call__�s"
u_Printer.__call__N( u__name__u
__module__u__qualname__u__doc__uMAXLINESu__init__u_Printer__setupu__repr__u__call__(u
__locals__((u)/opt/alt/python33/lib64/python3.3/site.pyu_Printer�su_PrintercCs�tdtj�t_tjdd�dkrCtdd�t_ntdd�t_tjjtj �}tdd d
dgtjj
|tj�|tjg�t_
dS(u)Set 'copyright' and 'credits' in builtinsu copyrightNiujavaucreditsu?Jython is maintained by the Jython developers (www.jython.org).u� Thanks to CWI, CNRI, BeOpen.com, Zope Corporation and a cast of thousands
for supporting Python development. See www.python.org for more information.ulicenseu'See https://www.python.org/psf/license/uLICENSE.txtuLICENSE(u_Printerusysu copyrightubuiltinsuplatformucreditsuosupathudirnameu__file__ujoinupardirucurdirulicense(uhere((u)/opt/alt/python33/lib64/python3.3/site.pyusetcopyright�s usetcopyrightcBs2|EeZdZdZdd�Zdd�ZdS(u_HelperuXDefine the builtin 'help'.
This is a wrapper around pydoc.help (with a twist).
cCsdS(NuHType help() for interactive help, or help(object) for help about object.((uself((u)/opt/alt/python33/lib64/python3.3/site.pyu__repr__�su_Helper.__repr__cOsddl}|j||�S(Ni(upydocuhelp(uselfuargsukwdsupydoc((u)/opt/alt/python33/lib64/python3.3/site.pyu__call__�su_Helper.__call__N(u__name__u
__module__u__qualname__u__doc__u__repr__u__call__(u
__locals__((u)/opt/alt/python33/lib64/python3.3/site.pyu_Helper�su_HelpercCst�t_dS(N(u_Helperubuiltinsuhelp(((u)/opt/alt/python33/lib64/python3.3/site.pyu sethelper�su sethelpercCs�tjdkr�ddl}ddl}|j�d}|jd�r�y|j|�Wq�tk
r�ddl}|j |j
|<d|jj|<Yq�Xq�ndS(u�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.uwin32iNiucpumbcs(usysuplatformulocaleucodecsugetdefaultlocaleu
startswithulookupuLookupErroru encodingsu_unknownu_cacheualiases(ulocaleucodecsuencu encodings((u)/opt/alt/python33/lib64/python3.3/site.pyu aliasmbcs�s
u aliasmbcsu,^(?P<key>(\w|[-_])+)\s*=\s*(?P<value>.*)\s*$cCs�tj}tjdkr4d|kr4tjd}n tj}tjjtjj|��\}}tjj|�}dt_
d}dd�tjj||�tjj||�fD�}|r�|d}d} t|���}
x�|
D]�}|j
�}tj|�}|r�|j�}
|
dj�|
d }}|d
krN|j�} qi|dkri|t_
qiq�q�WWdQX|t_t_t|tjg�| dkr�tjdtj�q�tjgadan|S(
Nudarwinu__PYVENV_LAUNCHER__u
pyvenv.cfgcSs(g|]}tjj|�r|�qS((uosupathuisfile(u.0uconffile((u)/opt/alt/python33/lib64/python3.3/site.pyu
<listcomp>�s uvenv.<locals>.<listcomp>iutrueukeyuvalueuinclude-system-site-packagesuhomeF(uosuenvironusysuplatformu
executableupathusplituabspathudirnameuNoneu_homeujoinuopenustripuCONFIG_LINEumatchu groupdictuloweruprefixuexec_prefixuaddsitepackagesuPREFIXESuinsertuFalseuENABLE_USER_SITE(uknown_pathsuenvu
executableuexe_diru_usite_prefixu
conf_basenameucandidate_confsuvirtual_confusystem_siteufulineumudukeyuvalue((u)/opt/alt/python33/lib64/python3.3/site.pyuvenv�s@ $
uvenvcCs�yddl}Wn~tk
r$Ynmtk
r�}zMtjjd�r^tjtj��n tj j
d|jj|f�WYdd}~XnXdS(u,Run custom site specific code, if available.iNu
PYTHONVERBOSEu@Error in sitecustomize; set PYTHONVERBOSE for traceback:
%s: %s
(
u
sitecustomizeuImportErroru Exceptionuosuenvironugetusysu
excepthookuexc_infoustderruwriteu __class__u__name__(u
sitecustomizeuerr((u)/opt/alt/python33/lib64/python3.3/site.pyuexecsitecustomize%s
uexecsitecustomizecCs�yddl}Wn~tk
r$Ynmtk
r�}zMtjjd�r^tjtj��n tj j
d|jj|f�WYdd}~XnXdS(u,Run custom user specific code, if available.iNu
PYTHONVERBOSEu@Error in usercustomize; set PYTHONVERBOSE for traceback:
%s: %s
(
u
usercustomizeuImportErroru Exceptionuosuenvironugetusysu
excepthookuexc_infoustderruwriteu __class__u__name__(u
usercustomizeuerr((u)/opt/alt/python33/lib64/python3.3/site.pyuexecusercustomize5s
uexecusercustomizecCs�t�t�}t|�}tdkr4t�ant|�}t|�}tj dkret
�nt�t�t
�t�t�tr�t�ndS(u�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.
uos2emxN(u abs_pathsuremoveduppathsuvenvuENABLE_USER_SITEuNoneucheck_enableusersiteuaddusersitepackagesuaddsitepackagesusysuplatformusetBEGINLIBPATHusetquitusetcopyrightu sethelperu aliasmbcsuexecsitecustomizeuexecusercustomize(uknown_paths((u)/opt/alt/python33/lib64/python3.3/site.pyumainEs
umaincCs�d}tjdd�}|s�t�}t�}td�x"tjD]}td|f�qEWtd�td|tjj|�r�dndf�td |tjj|�r�dndf�td
t�tj d�ng}d|kr|j
t�nd
|kr|j
t�n|r�ttj
j|��trPtj d�q�tdkrltj d�q�tdkr�tj d�q�tj d�n@ddl}t|j|tjdtj
f��tj d�dS(Nu� %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
iusys.path = [u %r,u]uUSER_BASE: %r (%s)uexistsu
doesn't existuUSER_SITE: %r (%s)uENABLE_USER_SITE: %riu--user-baseu--user-siteiii
F(usysuargvugetuserbaseugetusersitepackagesuprintupathuosuisdiruENABLE_USER_SITEuexituappendu USER_BASEu USER_SITEupathsepujoinuFalseuNoneutextwrapudedent(uhelpuargsu user_baseu user_siteudirubufferutextwrap((u)/opt/alt/python33/lib64/python3.3/site.pyu_scriptcs@
# #'u_scriptu__main__(*u__doc__usysuosureubuiltinsuprefixuexec_prefixuPREFIXESuNoneuENABLE_USER_SITEu USER_SITEu USER_BASEumakepathu abs_pathsuremoveduppathsu_init_pathinfou
addpackageu
addsitedirucheck_enableusersiteugetuserbaseugetusersitepackagesuaddusersitepackagesugetsitepackagesuaddsitepackagesusetBEGINLIBPATHusetquituobjectu_Printerusetcopyrightu_Helperu sethelperu aliasmbcsucompileuCONFIG_LINEuvenvuexecsitecustomizeuexecusercustomizeumainuflagsuno_siteu_scriptu__name__(((u)/opt/alt/python33/lib64/python3.3/site.pyu<module>BsJ
*,=
3
3
?>