From 5471f1ee6c299df58c1eb808d18af005b3db4f46 Mon Sep 17 00:00:00 2001 From: Balthasar Reuter Date: Tue, 30 Jun 2015 23:46:23 +0200 Subject: [PATCH] For some fu**ing reason I can't use the list notation for subprocess on the Pi --- camera.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/camera.py b/camera.py index e507e41..56a4fb4 100644 --- a/camera.py +++ b/camera.py @@ -46,7 +46,7 @@ class Camera_gPhoto: def call_gphoto(self, action, filename): # Try to run the command try: - cmd = [ "gphoto2", "--force-overwrite", "--quiet", action, "--filename " + filename ] + cmd = "gphoto2 --force-overwrite --quiet " + action + " --filename " + filename output = subprocess.check_output(cmd, shell=True, stderr=subprocess.STDOUT) if "ERROR" in output: raise subprocess.CalledProcessError(returncode=0, cmd=cmd, output=output)