Fix env command in fabfile

This commit is contained in:
Matthew Honnibal 2018-02-27 23:29:48 +01:00
parent 071a2fbd02
commit fd816bbd1b

2
fabfile.py vendored
View File

@ -35,7 +35,7 @@ def virtualenv(name, create=False, python='/usr/bin/python3.6'):
def env(lang='python2.7'):
if path.exists(VENV_DIR):
if VENV_DIR.exists():
local('rm -rf {env}'.format(env=VENV_DIR))
local('pip install virtualenv')
local('python -m virtualenv -p {lang} {env}'.format(lang=lang, env=VENV_DIR))