From 3f4d72c6e011aab72b77777689b9ae1b033f6ff9 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 14 Nov 2020 15:37:20 +0000 Subject: [PATCH] Avoid subdirectories --- theme.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/theme.py b/theme.py index f1b6c44fc..c6f711e70 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