From 313a5131fd4c176e3459669607724045b8e75cab Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 28 May 2020 10:26:30 +0100 Subject: [PATCH] Calling theme function from variable --- theme.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/theme.py b/theme.py index 2f883041..add510aa 100644 --- a/theme.py +++ b/theme.py @@ -276,8 +276,7 @@ def setTheme(baseDir: str, name: str) -> bool: themes = getThemesList() for themeName in themes: if name == themeName.lower(): - themeFunctionName = 'setTheme' + themeName - themeFunctionName(baseDir) + globals()['setTheme' + themeName](baseDir) result = True if not result: