Change python2.x built-in execfile to exec

execfile is python2.x only, therefore this code breaks any python3
installation that uses brandend platform horizon

Signed-off-by: Lucas Cavalcante <lucasmedeiros.cavalcante@windriver.com>
Change-Id: Ide48191e970d0df4481a44b892ba0d15e9f44604
Closes-Bug: 1933667
This commit is contained in:
Lucas Cavalcante 2021-06-25 10:42:21 -03:00
parent 4f4115d720
commit 1e4fb63116
1 changed files with 1 additions and 1 deletions

View File

@ -3733,7 +3733,7 @@ data:
# Custom Theme Override
for root, dirs, files in os.walk('/opt/branding/applied'):
if 'manifest.py' in files:
execfile(os.path.join(root, 'manifest.py'))
exec(open(os.path.join(root, 'manifest.py')).read())
AVAILABLE_THEMES = [
('default', 'Default', 'themes/default'),
('material', 'Material', 'themes/material'),