Normalise the path to resolve ../..

The "../.." fragment appears to be causing code in osprofiler/_utils.py
some issues, so we'll resolve it for them.

Change-Id: Ib443e7c64aae23246751df8769cdb1a2bd713e16
Partial-Bug: 1361235
This commit is contained in:
Richard Jones 2016-11-14 16:29:28 +11:00
parent 5db645b8b0
commit f7b271d4cd

View File

@ -5,7 +5,7 @@ from django.core.wsgi import get_wsgi_application
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__)), '../..'))
sys.path.insert(0, os.path.normpath(os.path.join(os.path.dirname(os.path.realpath(__file__)), '../..')))
os.environ['DJANGO_SETTINGS_MODULE'] = 'openstack_dashboard.settings'
sys.stdout = sys.stderr