ACC SHELL

Path : /usr/lib/python/
File Upload :
Current File : //usr/lib/python/runpy.pyo

Ñò
oÄMc@sdZddkZddkZyddklZWn#ej
oddklZnXdgZdddddd„Zdddddd„Z	d„Z
d„Zed	„Z
dded
„ZedjoFeeiƒdjoeid
IJqeid=e
eidƒndS(sZrunpy.py - locating and running Python code using the module namespace

Provides support for locating and running Python scripts using the Python
module namespace instead of the native filesystem.

This allows Python code to play nicely with non-filesystem based PEP 302
importers when locating support scripts as well as when importing modules.
iÿÿÿÿN(t
get_loadert
run_modulec	BsL|dj	o|i|ƒn|id|d|d|d|ƒ||U|S(sHelper for _run_module_codet__name__t__file__t
__loader__t__package__N(tNonetupdate(tcodetrun_globalstinit_globalstmod_namet	mod_fnamet
mod_loadertpkg_name((s/usr/lib/python2.6/runpy.pyt	_run_codes
cCsÃti|ƒ}|i}tid}|tij}	|	oti|}
n|tid<|ti|<z t|||||||ƒWd|tid<|	o|
ti|<nti|=X|iƒS(sHelper for run_moduleiN(timpt
new_modulet__dict__tsystargvtmodulesRtcopy(RR
RRR
Rttemp_moduletmod_globalstsaved_argv0trestore_moduletsaved_module((s/usr/lib/python2.6/runpy.pyt_run_module_code%s"	



cCs?x8dD]0}t||dƒ}|dj	o||ƒSqWdS(Ntget_filenamet
_get_filename(Rs
_get_filename(tgetattrR(tloaderRtattrtmeth((s/usr/lib/python2.6/runpy.pyRFs
cCs¡t|ƒ}|djotd|ƒ‚n|i|ƒotdd|ƒ‚n|i|ƒ}|djotd|ƒ‚nt||ƒ}|||fS(NsNo module named %ss%s is a package and cannot sbe directly executedsNo code object available for %s(RRtImportErrort
is_packagetget_codeR(RR Rtfilename((s/usr/lib/python2.6/runpy.pyt_get_module_detailsNs

c
CsÐyt|ƒ\}}}Wn]tj
oQ}|ot|ƒ}ndtid}dti|f}ti|ƒnX|idƒd}tidi	}	|o|tid<nt
||	dd|||ƒS(sœRuns the designated module in the __main__ namespace

       These __*__ magic variables will be overwritten:
           __file__
           __loader__
    scan't find '__main__.py' in %ris%s: %st.t__main__N(R'R#tstrRRt
executabletexitt
rpartitionRRRR(
Rt	set_argv0R RtfnametexctinfotmsgRtmain_globals((s/usr/lib/python2.6/runpy.pyt_run_module_as_main`scCs€t|ƒ\}}}|djo
|}n|idƒd}|ot||||||ƒSt|h|||||ƒSdS(snExecute a module's code without importing it

       Returns the resulting top level namespace dictionary
    R(iN(R'RR-RR(RR
trun_namet	alter_sysR RR/R((s/usr/lib/python2.6/runpy.pyR|s

R)is!No module specified for executioni(t__doc__RRRR#tpkgutilt__all__RRRRR'tTrueR4tFalseRRtlenRtstderr(((s/usr/lib/python2.6/runpy.pyt<module>s.			



ACC SHELL 2018