From 0bec4893a6dc607f001cc6fa4165e51db9150a03 Mon Sep 17 00:00:00 2001 From: Ian Foote Date: Tue, 17 Sep 2013 22:36:36 +0100 Subject: [PATCH] Specify cwd for garden cmd. Use --app arg. --- buildozer/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/buildozer/__init__.py b/buildozer/__init__.py index 3f97acf..90e60f8 100644 --- a/buildozer/__init__.py +++ b/buildozer/__init__.py @@ -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'):