misc: cleanup

This commit is contained in:
Dylan Araps 2018-03-18 15:37:51 +11:00
parent d364829fa5
commit 3d3f9ce2c5

View File

@ -11,11 +11,8 @@ from . import util
def index():
"""List all installed theme files."""
themes = [theme for theme in
os.scandir(os.path.join(CONF_DIR, "colorschemes"))]
themes += [theme for theme in
os.scandir(os.path.join(MODULE_DIR, "colorschemes"))]
return themes
return [*os.scandir(os.path.join(CONF_DIR, "colorschemes")),
*os.scandir(os.path.join(MODULE_DIR, "colorschemes"))]
def terminal_sexy_to_wal(data):