Specify cwd for garden cmd. Use --app arg.

This commit is contained in:
Ian Foote 2013-09-17 22:36:36 +01:00
parent 097073827f
commit 0bec4893a6

View file

@ -407,8 +407,9 @@ class Buildozer(object):
def _install_garden_package(self, package):
self._ensure_virtualenv()
self.debug('Install garden package {} in virtualenv'.format(package))
self.cmd('garden install {}'.format(package),
env=self.env_venv)
self.cmd('garden install --app {}'.format(package),
env=self.env_venv,
cwd=self.app_dir)
def _ensure_virtualenv(self):
if hasattr(self, 'venv'):