From cccf477c599d0b3262c3725075fa940edb96865c Mon Sep 17 00:00:00 2001 From: Akihiro Motoki Date: Sat, 8 Sep 2018 17:22:03 +0000 Subject: [PATCH] Revert "ROOT_PATH should not be appended to "sys.path"" This reverts commit e681bc2e2f1e5dc7ffd4f03d88d6691d962be6f7. Change-Id: Ib291c1dc04c92173a7a165a8fb0eec2b2165884b Closes-Bug: #1791451 --- openstack_dashboard/settings.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/openstack_dashboard/settings.py b/openstack_dashboard/settings.py index 372a24f875..0bd097c575 100644 --- a/openstack_dashboard/settings.py +++ b/openstack_dashboard/settings.py @@ -19,6 +19,7 @@ import glob import logging import os +import sys import warnings from django.utils.translation import pgettext_lazy @@ -42,6 +43,8 @@ warnings.formatwarning = lambda message, category, *args, **kwargs: \ ROOT_PATH = os.path.dirname(os.path.abspath(__file__)) +if ROOT_PATH not in sys.path: + sys.path.append(ROOT_PATH) DEBUG = False