MINI MINI MANI MO

Path : /lib64/python3.6/__pycache__/
File Upload :
Current File : //lib64/python3.6/__pycache__/runpy.cpython-36.opt-2.pyc

3


 \.@sddlZddlZddlZddlZddlmZmZddgZGddde	Z
Gddde	Zdd	d
Zd ddZ
efd
dZGdddeZd!ddZd"ddZefddZddZd#ddZedkreejdkredejdnejd=eejddS)$N)	read_codeget_importer
run_modulerun_pathc@s$eZdZddZddZddZdS)_TempModulecCs||_tj||_g|_dS)N)mod_nametypes
ModuleTypemodule
_saved_module)selfrr
/usr/lib64/python3.6/runpy.py__init__sz_TempModule.__init__cCsB|j}y|jjtj|Wntk
r0YnX|jtj|<|S)N)rrappendsysmodulesKeyErrorr
)rrr
r
r	__enter__sz_TempModule.__enter__cGs.|jr|jdtj|j<n
tj|j=g|_dS)Nr)rrrr)rargsr
r
r__exit__'s
z_TempModule.__exit__N)__name__
__module____qualname__rrrr
r
r
rrs	rc@s$eZdZddZddZddZdS)_ModifiedArgv0cCs||_t|_|_dS)N)valueobject_saved_value	_sentinel)rrr
r
rr/sz_ModifiedArgv0.__init__cCs0|j|jk	rtdtjd|_|jtjd<dS)NzAlready preserving saved valuer)rrRuntimeErrorrargvr)rr
r
rr3sz_ModifiedArgv0.__enter__cGs|j|_|jtjd<dS)Nr)rrrrr )rrr
r
rr9sz_ModifiedArgv0.__exit__N)rrrrrrr
r
r
rr.src
	Csn|dk	r|j||dkr(d}|}d}	n |j}|j}|j}	|dkrH|j}|j|||	d|||dt|||S)N)r__file__
__cached____doc__
__loader____package____spec__)updateloaderorigincachedparentexec)
codeZrun_globalsinit_globalsrmod_specpkg_namescript_namer(fnamer*r
r
r	_run_code>s(

r3c	Cs^|dkr|n|j}t|6}t|"|jj}t|||||||WdQRXWdQRX|jS)N)r)rrr
__dict__r3copy)	r-r.rr/r0r1r2temp_modulemod_globalsr
r
r_run_module_codeXs r8c
;Cs4|jdr|d|jd\}}}|ryt|WnJtk
r|}z.|jdksj|j|krl|j|jdrlWYdd}~XnXtjj|}|dk	rt|drddl	m
}dj||d}|t|yt
jj|}WnJttttfk
r}	z$d}||j|t|	j|	|	WYdd}	~	XnX|dkr6|d	||jdk	r|d
ksX|jdr`|dy|d}
t|
|S|k
r}z$|tjkr|d||fWYdd}~XnX|j}|dkr|d|y|j|}Wn2tk
r}z|t||WYdd}~XnX|dkr*|d||||fS)N.z#Relative module names not supported__path__r)warnz{mod_name!r} found in sys.modules after import of package {pkg_name!r}, but prior to execution of {mod_name!r}; this may result in unpredictable behaviour)rr0z:Error while finding module specification for {!r} ({}: {})zNo module named %s__main__z	.__main__z%Cannot use package as __main__ modulez%s; %r is a package and cannot zbe directly executedz0%r is a namespace package and cannot be executedzNo code object available for %sz3%s; %r is a package and cannot be directly executed)
startswith
rpartition
__import__ImportErrornamerrgethasattrwarningsr;formatRuntimeWarning	importlibutil	find_specAttributeError	TypeError
ValueErrortypersubmodule_search_locationsendswith_get_module_detailsr(get_code)
rerrorr0_eZexistingr;msgspecZexZ
pkg_main_namer(r-r
r
rrPfsZ

,

 
 
rPc@seZdZdS)_ErrorN)rrrr
r
r
rrWsrWTcCsy0|s|dkr t|t\}}}ntt\}}}Wn:tk
rj}zdtj|f}tj|WYdd}~XnXtjdj}|r|jtj	d<t
||dd|S)Nr<z%s: %sr)rPrW_get_main_module_detailsr
executableexitrr4r)r r3)rZ
alter_argvr/r-excrUZmain_globalsr
r
r_run_module_as_mainsr\FcCs@t|\}}}|dkr|}|r,t||||St|i|||SdS)N)rPr8r3)rr.run_nameZ	alter_sysr/r-r
r
rrscCs~d}tj|}tj|=zVyt|Stk
rh}z,|t|krV|d|tjdf|WYdd}~XnXWd|tj|<XdS)Nr<zcan't find %r module in %rr)rrrPr@strpath)rRZ	main_nameZ
saved_mainr[r
r
rrXs
rXcCsTt|d}t|}WdQRX|dkrLt|d}t|j|d}WdQRX||fS)Nrbr,)openrcompileread)r]r2fr-r
r
r_get_code_from_filesrec Cs|dkrd}|jdd}t|}d}t|jdkrFt|jdkrFd}t|tdsX|rxt||\}}t|||||dStj	j
d|zRt\}}	}t|4}
t
| |
jj}t|||||	|jSQRXWdQRXWdytj	j|Wntk
rYnXXdS)	Nz
<run_path>r9rFZimpZNullImporterT)r0r1)r>rrMrr
isinstancerer8rr_insertrXrrr
r4r3r5removerL)Z	path_namer.r]r0ZimporterZis_NullImporterr-r2rr/r6r7r
r
rrs0



"r<z!No module specified for execution)file)NNNNN)NNNNN)T)NNF)NN)rimportlib.machineryrGimportlib.utilrZpkgutilrr__all__rrrr3r8r@rP	ExceptionrWr\rrXrerrlenr printstderrr
r
r
r<module>
s4

:



1


OHA YOOOO