components/openstack/horizon/patches/01-osprofiler.patch
changeset 3998 5bd484384122
child 5405 66fd59fecd68
equal deleted inserted replaced
3997:0ca3f3d6c919 3998:5bd484384122
       
     1 In-house patch to address
       
     2 https://bugs.launchpad.net/osprofiler/+bug/1361235 in Horizon.
       
     3 
       
     4 --- horizon-2014.2.1/openstack_dashboard/wsgi/django.wsgi.orig	2014-11-13 15:02:19.599694847 -0700
       
     5 +++ horizon-2014.2.1/openstack_dashboard/wsgi/django.wsgi	2014-11-13 15:03:31.633159017 -0700
       
     6 @@ -5,7 +5,12 @@ import django.core.handlers.wsgi
       
     7  from django.conf import settings
       
     8  
       
     9  # Add this file path to sys.path in order to import settings
       
    10 -sys.path.insert(0, os.path.join(os.path.dirname(os.path.realpath(__file__)), '../..'))
       
    11 +
       
    12 +# XXX workaround until
       
    13 +# https://bugs.launchpad.net/osprofiler/+bug/1361235 in osprofiler is
       
    14 +# fixed
       
    15 +# sys.path.insert(0, os.path.join(os.path.dirname(os.path.realpath(__file__)), '../..'))
       
    16 +sys.path.insert(0, os.path.join(os.path.dirname(os.path.realpath(__file__)), os.path.realpath('../..')))
       
    17  os.environ['DJANGO_SETTINGS_MODULE'] = 'openstack_dashboard.settings'
       
    18  sys.stdout = sys.stderr
       
    19