From 5df576b73e320b41423e845e7ba8a63c1fc7b2c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Tue, 29 Sep 2015 13:53:48 +0200 Subject: [PATCH] Install testballoon using pip install . in testballoon folder --- src/octoprint/util/pip.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/octoprint/util/pip.py b/src/octoprint/util/pip.py index 9a860421..aad082b2 100644 --- a/src/octoprint/util/pip.py +++ b/src/octoprint/util/pip.py @@ -254,9 +254,12 @@ class PipCaller(CommandlineCaller): import os testballoon = os.path.join(os.path.realpath(os.path.dirname(__file__)), "piptestballoon") - sarge_command = [pip_command, "install", testballoon, "--verbose"] + sarge_command = [pip_command, "install", ".", "--verbose"] try: - p = sarge.run(sarge_command, stdout=sarge.Capture(), stderr=sarge.Capture()) + p = sarge.run(sarge_command, + stdout=sarge.Capture(), + stderr=sarge.Capture(), + cwd=testballoon) output = p.stdout.text self._logger.debug("Got output from {}: {}".format(" ".join(sarge_command), output))