From e681bc2e2f1e5dc7ffd4f03d88d6691d962be6f7 Mon Sep 17 00:00:00 2001 From: chao liu Date: Mon, 27 Aug 2018 12:59:06 +0800 Subject: [PATCH] ROOT_PATH should not be appended to "sys.path" there's no need to append ROOT_PATH to "sys.path" in the settings Change-Id: Ib50031c468ce0cbc9758bb04b4d6f459bcacac28 --- openstack_dashboard/settings.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/openstack_dashboard/settings.py b/openstack_dashboard/settings.py index 0bd097c575..372a24f875 100644 --- a/openstack_dashboard/settings.py +++ b/openstack_dashboard/settings.py @@ -19,7 +19,6 @@ import glob import logging import os -import sys import warnings from django.utils.translation import pgettext_lazy @@ -43,8 +42,6 @@ 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