diff --git a/powerline_shell/__init__.py b/powerline_shell/__init__.py index ae62704c..60f80519 100644 --- a/powerline_shell/__init__.py +++ b/powerline_shell/__init__.py @@ -149,7 +149,7 @@ def find_config(): os.path.join(os.environ.get("XDG_CONFIG_HOME", "~/.config"), "powerline-shell", "config.json"), ]: full = os.path.expanduser(location) - if os.path.exists(full): + if os.path.isfile(full): return full DEFAULT_CONFIG = {