aequilibrae.utils.model_run_utils#
Functions
|
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 importmodule_name: Name to give the imported module
force: Replace the module in
sys.modules
if it exists.- Returns:
The imported module