diff options
Diffstat (limited to 'pywal/theme.py')
| -rw-r--r-- | pywal/theme.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pywal/theme.py b/pywal/theme.py index c331d24..b0dbbf6 100644 --- a/pywal/theme.py +++ b/pywal/theme.py @@ -12,8 +12,10 @@ from . import util def list_themes(): """List all installed theme files.""" - return [*os.scandir(os.path.join(CONF_DIR, "colorschemes")), - *os.scandir(os.path.join(MODULE_DIR, "colorschemes"))] + themes = [*os.scandir(os.path.join(CONF_DIR, "colorschemes")), + *os.scandir(os.path.join(MODULE_DIR, "colorschemes"))] + + return [t for t in themes if os.path.isfile(t)] def terminal_sexy_to_wal(data): |
