mirror of
https://github.com/b-ryan/powerline-shell.git
synced 2026-09-10 07:26:28 -04:00
Don't treat directories as files
Powerline apparently blows up if you enter a directory which contains a directory named "powerline-shell.json". This fixes it.
This commit is contained in:
parent
a9b8c9bb39
commit
2def9292e0
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Reference in a new issue