diff --git a/mayan/apps/installation/classes.py b/mayan/apps/installation/classes.py index ff01f5840b..7d7c09caa2 100644 --- a/mayan/apps/installation/classes.py +++ b/mayan/apps/installation/classes.py @@ -125,7 +125,7 @@ class VirtualEnv(object): yield self.extract_dependency(item) def __init__(self): - self.requirements_file_path = os.path.join(settings.BASE_DIR, 'requirements', 'production.txt') + self.requirements_file_path = os.path.join(settings.SITE_ROOT, 'requirements', 'production.txt') if not PIP: raise PIPNotFound diff --git a/mayan/settings.py b/mayan/settings.py index 84f493975d..547858adf3 100644 --- a/mayan/settings.py +++ b/mayan/settings.py @@ -6,7 +6,7 @@ from django.core.urlresolvers import reverse_lazy ugettext = lambda s: s -BASE_DIR = os.path.dirname(__file__) +BASE_DIR = os.path.abspath(os.path.dirname(__file__)) SITE_ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__), '..')) sys.path.append(os.path.join(BASE_DIR, 'apps'))