ACC SHELL
Path : /usr/lib/python/ |
|
Current File : //usr/lib/python/runpy.pyo |
Ñò
oÄMc @ s d Z d d k Z d d k Z y d d k l Z Wn# e j
o d d k l Z n Xd g Z d d d d d d „ Z d d d d d d „ Z d „ Z
d „ Z e d „ Z
d d e d
„ Z e d j oF e e i ƒ d j o e i d
IJqe i d =e
e i d ƒ n d S( sZ runpy.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 B sL | d j o | i | ƒ n | i d | d | d | d | ƒ | | U| S( s Helper for _run_module_codet __name__t __file__t
__loader__t __package__N( t Nonet update( t codet run_globalst init_globalst mod_namet mod_fnamet
mod_loadert pkg_name( ( s /usr/lib/python2.6/runpy.pyt _run_code s
c C sà t i | ƒ } | i } t i d } | t i j } | o t i | }
n | t i d <| t i | <z t | | | | | | | ƒ Wd | t i d <| o |
t i | <n t i | =X| i ƒ S( s Helper for run_modulei N( t impt
new_modulet __dict__t syst argvt modulesR t copy( R R
R R R
R t temp_modulet mod_globalst saved_argv0t restore_modulet saved_module( ( s /usr/lib/python2.6/runpy.pyt _run_module_code% s"