From fd816bbd1b6ed16cdc9ecbc022cd20153962189d Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Tue, 27 Feb 2018 23:29:48 +0100 Subject: [PATCH] Fix env command in fabfile --- fabfile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fabfile.py b/fabfile.py index ae3b8acb9..814337a77 100644 --- a/fabfile.py +++ b/fabfile.py @@ -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))