def update_application():
print "Updating repository.",
os.system("cd %s; git pull" % PROJECT_ROOT)
def update_application():
print "Updating repository.",
os.system("cd %s; git pull" % PROJECT_ROOT)
- os.system("pip install -r %s" % os.path.join(ROOT, 'etc', 'requirements.txt'))
+ os.system("%s install -r %s" % (PIP, os.path.join(ROOT, 'etc', 'requirements.txt')))
print "done."
ROOT = os.path.dirname(os.path.abspath(__file__))
PYTHON = os.path.join(ROOT, 'pythonenv', 'bin', 'python')
print "done."
ROOT = os.path.dirname(os.path.abspath(__file__))
PYTHON = os.path.join(ROOT, 'pythonenv', 'bin', 'python')
PYTHON_SITE = os.path.join(ROOT, 'pythonenv', 'lib', 'python2.6', 'site-packages')
PYTHON_SITE = os.path.join(ROOT, 'pythonenv', 'lib', 'python2.6', 'site-packages')
PROJECT_ROOT = os.path.join(ROOT, 'application')
MEDIA_ROOT = os.path.join(ROOT, 'www', 'media')
PROJECT_ROOT = os.path.join(ROOT, 'application')
MEDIA_ROOT = os.path.join(ROOT, 'www', 'media')