Uname: Linux web3.us.cloudlogin.co 5.10.226-xeon-hst #2 SMP Fri Sep 13 12:28:44 UTC 2024 x86_64
Software: Apache
PHP version: 8.1.31 [ PHP INFO ] PHP os: Linux
Server Ip: 162.210.96.117
Your Ip: 18.222.181.72
User: edustar (269686) | Group: tty (888)
Safe Mode: OFF
Disable Function:
NONE

name : scripts.pyc
�
���cc@sddlmZddlZddlZddlZddlZddlZddlZddlm	Z	ddl
mZmZm
Z
ddlmZddlmZmZmZmZmZmZeje�Zdj�Zejd	�Zd
Zd�ZeZ de!fd
��YZ"dS(i����(tBytesION(tZipInfoi(t	sysconfigtdetect_encodingtZipFile(tfinder(tFileOperatortget_export_entrytconvert_pathtget_executabletget_platformtin_venvs�
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
 <assemblyIdentity version="1.0.0.0"
 processorArchitecture="X86"
 name="%s"
 type="win32"/>

 <!-- Identify the application security requirements. -->
 <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
 <security>
 <requestedPrivileges>
 <requestedExecutionLevel level="asInvoker" uiAccess="false"/>
 </requestedPrivileges>
 </security>
 </trustInfo>
</assembly>s^#!.*pythonw?[0-9.]*([ 	].*)?$s�# -*- coding: utf-8 -*-
import re
import sys
from %(module)s import %(import_name)s
if __name__ == '__main__':
    sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
    sys.exit(%(func)s())
cCs�d|kr�|jd�re|jdd�\}}d|kr�|jd�r�d||f}q�q�|jd�s�d|}q�n|S(Nt s
/usr/bin/env it"s%s "%s"s"%s"(t
startswithtsplit(t
executabletenvt_executable((s3/usr/lib/python2.7/site-packages/distlib/scripts.pytenquote_executable5stScriptMakercBs+eZdZeZdZeedd�Z	d�Z
ejj
d�rZd�Zd�Znd�Zddd�Zd	�ZeZd
�Zd�ZdZd
�Zdd�Zd�Zed��Zejd��Zejdksejdkrej dkrd�Z!ndd�Z"dd�Z#RS(s_
    A class to copy or create scripts from source scripts or callable
    specifications.
    cCs�||_||_||_t|_t|_tjdkpWtjdkoWtjdk|_	t
d�|_|p{t|�|_
tjdkp�tjdko�tjdk|_tj|_dS(NtposixtjavatsX.Ytnt(RsX.Y(t
source_dirt
target_dirt
add_launcherstFalsetforcetclobbertostnamet_nametset_modetsettvariantsRt_fileopt_is_nttsystversion_info(tselfRRRtdry_runtfileop((s3/usr/lib/python2.7/site-packages/distlib/scripts.pyt__init__Ps					!cCsa|jdt�r]|jr]tjj|�\}}|jdd�}tjj||�}n|S(Ntguitpythontpythonw(tgetRR&RtpathRtreplacetjoin(R)Rtoptionstdntfn((s3/usr/lib/python2.7/site-packages/distlib/scripts.pyt_get_alternate_executableas
RcCs[y,t|��}|jd�dkSWdQXWn(ttfk
rVtjd|�tSXdS(sl
            Determine if the specified executable is a script
            (contains a #! line)
            is#!NsFailed to open %s(topentreadtOSErrortIOErrortloggertwarningR(R)Rtfp((s3/usr/lib/python2.7/site-packages/distlib/scripts.pyt	_is_shelliscCs^|j|�r=ddl}|jjjd�dkrV|Sn|j�jd�rV|Sd|S(Ni����sos.nametLinuxs
jython.exes/usr/bin/env %s(R?RtlangtSystemtgetPropertytlowertendswith(R)RR((s3/usr/lib/python2.7/site-packages/distlib/scripts.pyt_fix_jython_executableuscCs�tjdkrt}nPt|�t|�d}tjdkrJd}nd}d|koe||k}|r�d||d}n&d	}|d
||d7}|d7}|S(
s
        Build a shebang line. In the simple case (on Windows, or a shebang line
        which is not too long or contains spaces) use a simple formulation for
        the shebang. Otherwise, use /bin/sh as the executable, with a contrived
        shebang which allows the script to run either under Python or sh, using
        suitable quoting. Thanks to Harald Nordgren for his input.

        See also: http://www.in-ulm.de/~mascheck/various/shebang/#length
                  https://hg.mozilla.org/mozilla-central/file/tip/mach
        RitdarwiniiRs#!s
s
#!/bin/sh
s	'''exec' s "$0" "$@"
s' '''(RR tTruetlenR'tplatform(R)Rtpost_interptsimple_shebangtshebang_lengthtmax_shebang_lengthtresult((s3/usr/lib/python2.7/site-packages/distlib/scripts.pyt_build_shebang�s		
RcCst}|jr!|j}t}n�tj�s9t�}n�t�rptjj	tj
d�dtjd��}nztjj	tjd�dtjd�tjd�f�}tjj|�s�tjj	tjd�dtjd��}n|r|j
||�}ntjjd�r)|j|�}n|r>t|�}n|jd�}tjd	kr�d
|kr�d|kr�|d7}n|j||�}y|jd�Wn!tk
r�td
|��nX|dkry|j|�Wqtk
rtd||f��qXn|S(Ntscriptsspython%stEXEtBINDIRs
python%s%stVERSIONRsutf-8tclis	-X:Framess
-X:FullFramess
 -X:Framess,The shebang (%r) is not decodable from utf-8s?The shebang (%r) is not decodable from the script encoding (%r)(RHRRRtis_python_buildR	RRR1R3tget_pathtget_config_vartisfileR7R'RJRRFRtencodeRPtdecodetUnicodeDecodeErrort
ValueError(R)tencodingRKR4tenquoteRtshebang((s3/usr/lib/python2.7/site-packages/distlib/scripts.pyt_get_shebang�sP					



cCs6|jtd|jd|jjd�dd|j�S(Ntmoduletimport_namet.itfunc(tscript_templatetdicttprefixtsuffixR(R)tentry((s3/usr/lib/python2.7/site-packages/distlib/scripts.pyt_get_script_text�scCstjj|�}|j|S(N(RR1tbasenametmanifest(R)texenametbase((s3/usr/lib/python2.7/site-packages/distlib/scripts.pytget_manifest�sc	Cs�|jo|j}tjjd�}|j|�s@||7}n|sS||}n�|dkrq|jd�}n|jd�}t�}	t|	d��p}
tj	j
d�}|r�tjt
|��d }tddd	|�}
|
j|
|�n|
jd|�WdQX|	j�}|||}x�|D]�}tjj|j|�}|rEtjj|�\}}|jd
�r|}nd|}y|jj||�Wq�tk
rAtjd�d
|}tjj|�r�tj|�ntj||�|jj||�tjd�ytj|�WqBtk
r=qBXq�Xn�|jru|jd|�rud||f}ntjj|�r�|jr�tjd|�q+n|jj||�|j r�|jj!|g�n|j"|�q+WdS(Nsutf-8tpytttwtSOURCE_DATE_EPOCHitfilenames__main__.pyt	date_times.pys%s.exes:Failed to write executable - trying to use .deleteme logics%s.deletemes0Able to replace executable using .deleteme logicRds%s.%ssSkipping existing file %s(#RR&RtlinesepRZREt
_get_launcherRRtenvironR0ttimetgmtimetintRtwritestrtgetvalueR1R3RtsplitextRR%twrite_binary_filet	ExceptionR<R=texiststremovetrenametdebugRR"tset_executable_modetappend(R)tnamesR`tscript_bytest	filenamestexttuse_launcherRwtlaunchertstreamtzftsource_date_epochRvtzinfotzip_dataR toutnametntetdfname((s3/usr/lib/python2.7/site-packages/distlib/scripts.pyt
_write_script�sb

	
	





	t-cCs�t�}d|jkr(|j|�nd|jkrX|jd||jdf�nd|jkr�|jd||j|jd|jdf�n|S(NRtXs%s%sisX.Ys	%s%s%s.%si(R#R$taddR(tvariant_separator(R)R RO((s3/usr/lib/python2.7/site-packages/distlib/scripts.pytget_script_filenames,s	!c
Cs�d}|rL|jdg�}|rLddj|�}|jd�}qLn|jd|d|�}|j|�jd�}|j|j�}|r�|jdt�r�d}	nd	}	|j|||||	�dS(
NRtinterpreter_argss %sRsutf-8R4R-tpywRq(	R0R3RZRaRkR�R RR�(
R)RjR�R4RKtargsR`tscripttscriptnamesR�((s3/usr/lib/python2.7/site-packages/distlib/scripts.pyt_make_script7s	cCs7t}tjj|jt|��}tjj|jtjj|��}|jr||j	j
||�r|tjd|�dSyt
|d�}Wn&tk
r�|js��nd}nfX|j�}|s�tjd|�dStj|jdd��}|rt}|jd�pd}n|sx|r6|j�n|j	j||�|jrh|j	j|g�n|j|�n�tjd||j�|j	js t|j�\}	}
|jd	�|j |	|�}d
|kr�d}nd}tjj|�}
|j!|
g||j"�||�n|r3|j�ndS(
Nsnot copying %s (up-to-date)trbs%s is an empty file (skipping)s
s
iRscopying and adjusting %s -> %siR/R�Rq(#RRR1R3RRRRlRR%tnewerR<R�R8R;R*tNonetreadlineR=t
FIRST_LINE_REtmatchR2RHtgrouptcloset	copy_fileR"R�R�tinfoRtseekRaR�R9(R)R�R�tadjustR�tft
first_lineR�RKR^tlinesR`R�R�((s3/usr/lib/python2.7/site-packages/distlib/scripts.pyt_copy_scriptGsP$ 
	

	

	%cCs
|jjS(N(R%R*(R)((s3/usr/lib/python2.7/site-packages/distlib/scripts.pyR*zscCs||j_dS(N(R%R*(R)tvalue((s3/usr/lib/python2.7/site-packages/distlib/scripts.pyR*~sRcCs�tjd�dkrd}nd}t�dkr9dnd}d|||f}tjd	d
�d}t|�j|�}|s�d||f}t|��n|jS(
NtPit64t32s	win-arm64s-armRs
%s%s%s.exeRdiis(Unable to find resource %s in package %s(	tstructtcalcsizeR
t__name__trsplitRtfindR]tbytes(R)tkindtbitstplatform_suffixR tdistlib_packagetresourcetmsg((s3/usr/lib/python2.7/site-packages/distlib/scripts.pyRx�s	
cCsKg}t|�}|dkr1|j||�n|j||d|�|S(s�
        Make a script.

        :param specification: The specification, which is either a valid export
                              entry specification (to make a script from a
                              callable) or a filename (to make a script by
                              copying from a source location).
        :param options: A dictionary of options controlling script generation.
        :return: A list of all absolute pathnames written to.
        R4N(RR�R�R�(R)t
specificationR4R�Rj((s3/usr/lib/python2.7/site-packages/distlib/scripts.pytmake�scCs4g}x'|D]}|j|j||��q
W|S(s�
        Take a list of specifications and make scripts from them,
        :param specifications: A list of specifications.
        :return: A list of all absolute pathnames written to,
        (textendR�(R)tspecificationsR4R�R�((s3/usr/lib/python2.7/site-packages/distlib/scripts.pyt
make_multiple�s
N($R�t
__module__t__doc__tSCRIPT_TEMPLATERfR�RRHRR,R7R'RJRR?RFRPRaRkt_DEFAULT_MANIFESTRmRpR�R�R�R�R�tpropertyR*tsetterRR R!RxR�R�(((s3/usr/lib/python2.7/site-packages/distlib/scripts.pyRGs2			E			:		3-(#tioRtloggingRtreR�R'RztzipfileRtcompatRRRt	resourcesRtutilRRRR	R
Rt	getLoggerR�R<tstripR�tcompileR�R�Rt_enquote_executabletobjectR(((s3/usr/lib/python2.7/site-packages/distlib/scripts.pyt<module>s".	
© 2025 GrazzMean