PyDocs

Importing Modules

runpy

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.
Symbols in runpy

r

run_module
Execute a module's code without importing it.
run_path
Execute code located at the specified filesystem location.