From 4a72ef53ab2fe34d2af79f734fb597df6cec098d Mon Sep 17 00:00:00 2001 From: Martin Owens Date: Fri, 23 Mar 2018 12:53:29 -0400 Subject: [PATCH] Make the config filter a little more robust about what it accepts --- hamster_lib/helpers/config_helpers.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hamster_lib/helpers/config_helpers.py b/hamster_lib/helpers/config_helpers.py index 9ff9c901..f49a907f 100644 --- a/hamster_lib/helpers/config_helpers.py +++ b/hamster_lib/helpers/config_helpers.py @@ -152,6 +152,8 @@ def get_config_path(appdirs=DEFAULT_APPDIRS, file_name=DEFAULT_CONFIG_FILENAME): Returns: str: Fully qualified path (dir & filename) where we expect the config file. """ + if isinstance(appdirs, (str, unicode)): + appdirs = HamsterAppDirs(appdirs) return os.path.join(appdirs.user_config_dir, file_name)