From 2bd4c7b75b9d4629c27bb16bd042f6019cb09197 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sun, 1 Apr 2018 09:50:53 +1000 Subject: theme: Update flag --- pywal/theme.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pywal/theme.py') diff --git a/pywal/theme.py b/pywal/theme.py index 6d0acdc..a049ad2 100644 --- a/pywal/theme.py +++ b/pywal/theme.py @@ -9,7 +9,7 @@ from .settings import CONF_DIR, MODULE_DIR from . import util -def index(): +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"))] @@ -46,7 +46,7 @@ def file(input_file): theme_file = user_theme_file elif input_file == "random": - themes = [theme.path for theme in index()] + themes = [theme.path for theme in list_themes()] random.shuffle(themes) theme_file = themes[0] -- cgit v1.2.3