Skip to content

Commit

Permalink
Handle error message edge case when finding yaml paths (#1456)
Browse files Browse the repository at this point in the history
  • Loading branch information
roomrys authored Aug 15, 2023
1 parent 6858563 commit e0eebb2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sleap/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,8 @@ def get_config_file(
The full path to the specified config file.
"""

desired_path = None # Handle case where get_defaults, but cannot find package_path

if not get_defaults:
desired_path = os.path.expanduser(
f"~/.sleap/{sleap_version.__version__}/{shortname}"
Expand Down

0 comments on commit e0eebb2

Please sign in to comment.