runpy
runpy — Locating and executing Python modules
New in version 2.5.
Source code: Lib/runpy.py
The runpy
module is used to locate and run Python modules without importing them first. Its main use is to implement the -m
command line switch that allows scripts to be located using the Python module namespace rather than the filesystem.
The 登录查看完整内容