Commit c3fe6f45 authored by Georgios Gousios's avatar Georgios Gousios
Browse files

Include .. in PYTHON path in manage.py

We have to do this in order to fix namespace inconsistencies (files in
synnefo use imports starting with synnefo)
refs: #393
parent ee7ec75a
......@@ -53,6 +53,8 @@ go_to_ve()
from django.core.management import execute_manager
try:
import settings # Assumed to be in the same directory.
path = os.path.normpath(os.path.join(os.getcwd(), '..'))
sys.path.append(path)
except ImportError:
import sys
sys.stderr.write("Error: Can't find the file 'settings.py' in the directory")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment