IOError Fix in Installation App

This commit is contained in:
Rafael Esparra
2014-06-28 15:42:47 -04:00
committed by Roberto Rosario
parent 376b36bd9b
commit 373b1cb5b8
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -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'))