From: Bryan Date: Sun, 29 Dec 2013 04:48:53 +0000 (-0500) Subject: minor fix for when no virtualenvs are found X-Git-Tag: release-20150131~353 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f09c6f3307806fe2db8b9bbf993b35b5df10244c;p=oweals%2Fkarmaworld.git minor fix for when no virtualenvs are found --- diff --git a/fabfile.py b/fabfile.py index e4f5097..67f4402 100644 --- a/fabfile.py +++ b/fabfile.py @@ -32,7 +32,8 @@ def virtenv_path(): return env['env_root'] # Not memoized. Try to find a single unique virtual environment. - outp = run("find -L {0} -path '*/bin/activate' | grep -v '/local/'".format(env.proj_root)) + with settings(warn_only=True): + outp = run("find -L {0} -path '*/bin/activate' | grep -v '/local/'".format(env.proj_root)) if not len(outp) or len(outp.splitlines()) != 1: # Cannot find any virtualenv or found multiple virtualenvs. if len(outp) and default_venv not in outp: