For some fu**ing reason I can't use the list notation for subprocess on the Pi

This commit is contained in:
Balthasar Reuter
2015-06-30 23:46:23 +02:00
parent 02f636ecca
commit 5471f1ee6c

View File

@@ -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)