✏️ 编辑:runpy.cpython-39.pyc
路径:
/usr/lib64/python3.9/__pycache__/runpy.cpython-39.pyc
大小:9.17 KB · 修改:2026-08-12 15:51:23 · 权限:0644 · 只读(保存会失败)
← 返回目录
👁 查看
⬇ 下载
检测到二进制内容,直接保存可能损坏文件。请改用「上传替换」。
a �i3 � @ s d Z ddlZddlZddlZddlZddlZddlZddlm Z m Z ddgZG dd� de�Z G dd � d e�Zd d d�Zd!dd �Zefdd�ZG dd� de�Zd"dd�Zd#dd�Zefdd�Zdd� Zd$dd�Zedk�reej�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 || _ t�|�| _g | _d S �N)�mod_name�types� ModuleType�module� _saved_module��selfr � r �/usr/lib64/python3.9/runpy.py�__init__ s z_TempModule.__init__c C s@ | j }z| j�tj| � W n ty. Y n0 | jtj|<