Skip to content

Commit

Permalink
Handle edge case when finding yaml paths
Browse files Browse the repository at this point in the history
  • Loading branch information
roomrys committed Aug 15, 2023
1 parent 6858563 commit 5af2a03
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 5af2a03

Please sign in to comment.