Revert "ROOT_PATH should not be appended to "sys.path""
This reverts commit e681bc2e2f
.
Change-Id: Ib291c1dc04c92173a7a165a8fb0eec2b2165884b
Closes-Bug: #1791451
This commit is contained in:
@@ -19,6 +19,7 @@
|
|||||||
import glob
|
import glob
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
|
import sys
|
||||||
import warnings
|
import warnings
|
||||||
|
|
||||||
from django.utils.translation import pgettext_lazy
|
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__))
|
ROOT_PATH = os.path.dirname(os.path.abspath(__file__))
|
||||||
|
|
||||||
|
if ROOT_PATH not in sys.path:
|
||||||
|
sys.path.append(ROOT_PATH)
|
||||||
|
|
||||||
DEBUG = False
|
DEBUG = False
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user