//usr/lib64/lib64//lib64/lib64/python2.7/ó
ÙœSec @ s{ d Z d d l Z d d l Z d d l m Z y d d l m Z Wn! e k
re d d l m Z n Xd d g Z d e f d „ ƒ YZ d e f d
„ ƒ YZ
d d d d d d „ Z d d d d d d „ Z
d
„ Z d „ Z d „ Z e d „ Z d d e d „ Z d „ Z d „ Z d d d „ Z e d k rwe e j ƒ d k rYe j d IJqwe j d =e e j 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 read_code( t
get_loadert
run_modulet run_patht _TempModulec B s) e Z d Z d „ Z d „ Z d „ Z RS( sC Temporarily replace a module in sys.modules with an empty namespacec C s( | | _ t j | ƒ | _ g | _ d S( N( t mod_namet impt
new_modulet modulet
_saved_module( t selfR ( ( s /usr/lib64/python2.7/runpy.pyt __init__ s c C sL | j } y | j j t j | ƒ Wn t k
r7 n X| j t j | <| S( N( R R t appendt syst modulest KeyErrorR ( R
R ( ( s /usr/lib64/python2.7/runpy.pyt __enter__ s
c G s= | j r# | j d t j | j