Skip to content

Commit

Permalink
fix(config): add ensure_exists parameter to get_path function
Browse files Browse the repository at this point in the history
  • Loading branch information
entelecheia committed Aug 11, 2023
1 parent f0d1388 commit 5b8579e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/hyfi/main/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,12 +238,15 @@ def get_path(
self,
path_name: str,
base_dir: Optional[Union[Path, str]] = None,
ensure_exists: bool = False,
) -> Optional[Path]:
"""
Get the path to a directory or file.
"""
return (
self.project.get_path(path_name, base_dir=base_dir)
self.project.get_path(
path_name, base_dir=base_dir, ensure_exists=ensure_exists
)
if self.project
else None
)
Expand Down

0 comments on commit 5b8579e

Please sign in to comment.