reflection.script_inspector
DummyModule Objects
class DummyModule(ModuleType)
A dummy module from which you can import anything
import_script_module
def import_script_module(module_path: str,
script_relative_path: str,
ignore_missing_imports: bool = False) -> ModuleType
Loads a module in script_relative_path
by splitting it into a script module (file part) and package (folders). module_path
is added to sys.path
Optionally, missing imports will be ignored by importing a dummy module instead.