load_file#

maize.utilities.io.load_file(file: Path | str, name: str | None = None) module[source]#

Load a python file as a module.

Parameters:
  • file – Python file to load

  • name – Optional name to use for the module, will use the filename if not given

Returns:

The loaded module

Return type:

ModuleType