Coverage for src/pyroboplan/models/utils.py: 100%

5 statements  

« prev     ^ index     » next       coverage.py v7.6.12, created at 2025-02-28 21:35 -0500

1"""Utilities for model loading.""" 

2 

3import importlib.resources 

4import pyroboplan 

5 

6 

7def get_example_models_folder(): 

8 """ 

9 Returns the full path the example models folder. 

10 

11 Returns 

12 ------- 

13 str 

14 The path to the `pyroboplan` example models folder. 

15 """ 

16 resource_path = importlib.resources.files(pyroboplan) / "models" 

17 return resource_path.as_posix()