diff options
| author | Dylan Araps <dylan.araps@gmail.com> | 2018-04-03 12:06:41 +1000 |
|---|---|---|
| committer | Dylan Araps <dylan.araps@gmail.com> | 2018-04-03 12:06:41 +1000 |
| commit | 68e20cc90a1037bc4f4e16a79bb3add922c5711c (patch) | |
| tree | 3fe083da62e4c57e733c02caa64edf317f361216 /pywal/theme.py | |
| parent | 59b4c5408608eee60e7273d3a5ed2ba15d489b1d (diff) | |
themes: Enhance listing.
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): |
