3 \·. ã @ s d Z ddlZddlZddlZddlZddlmZmZ ddgZ G dd„ de ƒZG dd „ d e ƒZd d d„Z d!dd „Zefdd„ZG dd„ deƒZd"dd„Zd#dd„Zefdd„Zdd„ Zd$dd„Zedk� rþeejƒdk � rèedejd� nejd= eejd ƒ dS )%aZ 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. é N)Ú read_codeÚget_importerÚ run_moduleÚrun_pathc @ s( e Zd ZdZdd„ Zdd„ Zdd„ ZdS ) Ú_TempModulezCTemporarily replace a module in sys.modules with an empty namespacec C s || _ tj|ƒ| _g | _d S )N)Úmod_nameÚtypesÚ ModuleTypeÚmoduleÚ _saved_module)Úselfr © r ú/usr/lib64/python3.6/runpy.pyÚ__init__ s z_TempModule.__init__c C sB | j }y| jjtj| ƒ W n tk r0 Y nX | jtj|<