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:
parent
4f4115d720
commit
1e4fb63116
@ -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'),
|
||||
|
Loading…
x
Reference in New Issue
Block a user