aequilibrae.utils.model_run_utils#

Functions

import_file_as_module(file, module_name[, force])

Import a file as a Python module.

aequilibrae.utils.model_run_utils.import_file_as_module(file: Path, module_name, force: bool = False)[source]#

Import a file as a Python module.

Arguments:

file (pathlib.Path): Path object pointing to the file to import

module_name: Name to give the imported module

force: Replace the module in sys.modules if it exists.

Returns:

The imported module