From 01ede5b1ab651ec1237a9f090162313c6943c2b5 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 14 Nov 2020 15:34:13 +0000 Subject: [PATCH] Don't include icons directory --- theme.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/theme.py b/theme.py index 1e376052..7774b0dd 100644 --- a/theme.py +++ b/theme.py @@ -27,7 +27,8 @@ def getThemesList(baseDir: str) -> []: themes = [] for subdir, dirs, files in os.walk(baseDir + '/theme'): for themeName in dirs: - themes.append(themeName.title()) + if '~' not in themeName and themeName != 'icons': + themes.append(themeName.title()) print('Themes available: ' + str(themes)) return themes