From 373b1cb5b852f48a15215fc6bae1d74ebc2bec0e Mon Sep 17 00:00:00 2001 From: Rafael Esparra Date: Sat, 28 Jun 2014 15:42:47 -0400 Subject: [PATCH] IOError Fix in Installation App --- mayan/apps/installation/classes.py | 2 +- mayan/settings.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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'))