From 5af2a03d2890cdf2bf4589336f408aba1e6686ac Mon Sep 17 00:00:00 2001 From: roomrys Date: Tue, 15 Aug 2023 11:54:03 -0700 Subject: [PATCH] Handle edge case when finding yaml paths --- sleap/util.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sleap/util.py b/sleap/util.py index d3a3073c2..b13796ceb 100644 --- a/sleap/util.py +++ b/sleap/util.py @@ -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}"