components/openstack/horizon/patches/01-osprofiler.patch
author david.comay@oracle.com
Fri, 09 Sep 2016 16:31:02 -0700
changeset 6878 252671ed151a
parent 5405 66fd59fecd68
permissions -rw-r--r--
24617715 'mysql_storage_engine' option's help message could be improved

In-house patch to address
https://bugs.launchpad.net/osprofiler/+bug/1361235 in Horizon.

--- horizon-2015.1.0/openstack_dashboard/wsgi/django.wsgi.orig	2014-11-13 15:02:19.599694847 -0700
+++ horizon-2015.1.0/openstack_dashboard/wsgi/django.wsgi	2014-11-13 15:03:31.633159017 -0700
@@ -5,7 +5,12 @@ import django.core.handlers.wsgi
 from django.conf import settings
 
 # Add this file path to sys.path in order to import settings
-sys.path.insert(0, os.path.join(os.path.dirname(os.path.realpath(__file__)), '../..'))
+
+# XXX workaround until
+# https://bugs.launchpad.net/osprofiler/+bug/1361235 in osprofiler is
+# fixed
+# sys.path.insert(0, os.path.join(os.path.dirname(os.path.realpath(__file__)), '../..'))
+sys.path.insert(0, os.path.join(os.path.dirname(os.path.realpath(__file__)), os.path.realpath('../..')))
 os.environ['DJANGO_SETTINGS_MODULE'] = 'openstack_dashboard.settings'
 sys.stdout = sys.stderr