diff --git a/openstack/python-horizon/centos/files/local_settings.py b/openstack/python-horizon/centos/files/local_settings.py index 698c063d..7b4ab182 100755 --- a/openstack/python-horizon/centos/files/local_settings.py +++ b/openstack/python-horizon/centos/files/local_settings.py @@ -992,7 +992,10 @@ DEFAULT_THEME = 'titanium' for root, dirs, files in os.walk('/opt/branding/applied'): if 'manifest.py' in files: - execfile(os.path.join(root, 'manifest.py')) + with open(os.path.join(root, 'manifest.py')) as f: + code = compile(f.read(), os.path.join(root, 'manifest.py'), 'exec') + exec(code) + AVAILABLE_THEMES = [ ('default', 'Default', 'themes/default'), ('material', 'Material', 'themes/material'),