diff options
| author | Dylan Araps <dylan.araps@gmail.com> | 2018-04-01 09:50:53 +1000 |
|---|---|---|
| committer | Dylan Araps <dylan.araps@gmail.com> | 2018-04-01 09:50:53 +1000 |
| commit | 2bd4c7b75b9d4629c27bb16bd042f6019cb09197 (patch) | |
| tree | a5eb88db93ce04a803ea66cd1d6ae955c7a875e9 /pywal/theme.py | |
| parent | 400e7d0c42af803dd5ac4bd5bedc6a65f7298eb4 (diff) | |
theme: Update flag
Diffstat (limited to 'pywal/theme.py')
| -rw-r--r-- | pywal/theme.py | 4 |
1 files changed, 2 insertions, 2 deletions
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] |
