qualitylib.tools.import_python.import_python_file

import_python_file(filepath)[source]

Import a python file as a module.

Parameters:

filepath (str) – Path to Python file.

Return type:

ModuleType

Returns:

Loaded module.