IOError Fix in Installation App
This commit is contained in:
committed by
Roberto Rosario
parent
376b36bd9b
commit
373b1cb5b8
@@ -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
|
||||
|
||||
|
||||
@@ -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'))
|
||||
|
||||
Reference in New Issue
Block a user