diff --git a/theme.py b/theme.py index f1b6c44f..c6f711e7 100644 --- a/theme.py +++ b/theme.py @@ -25,10 +25,11 @@ def getThemesList(baseDir: str) -> []: and to lookup function names """ themes = [] - for subdir, dirs, files in next(os.walk(baseDir + '/theme')): + for subdir, dirs, files in os.walk(baseDir + '/theme'): for themeName in dirs: if '~' not in themeName and themeName != 'icons': themes.append(themeName.title()) + break print('Themes available: ' + str(themes)) return themes