Jun-12-2018, 12:06 PM
(This post was last modified: Jun-12-2018, 12:16 PM by hhanswurster.)
Label: Shutter Speed Type: RADIO Current: 1/8 Label: Shutter Speed Type: RADIO Current: 1/8with
command = check_output(["gphoto2","--get-config","/main/capturesettings/shutterspeed"]) output = command.decode().strip() print output.split(' ')i got:
[u'Label:', u'Shutter', u'Speed\nType:', u'RADIO\nCurrent:', u'1/8']
now i have to print only the last one somehow :D
got it :)
command = check_output(["gphoto2","--get-config","/main/capturesettings/shutterspeed"]) output = command.decode().strip() output = output.split(' ') print(output[-1])