theme: Fix crash on python 3.5. Closes #224

This commit is contained in:
Dylan Araps 2018-04-05 16:07:03 +10:00
parent a9879a0374
commit d34fcdd765

View File

@ -15,7 +15,7 @@ def list_themes():
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)]
return [t for t in themes if os.path.isfile(t.path)]
def terminal_sexy_to_wal(data):