Vote count:
0
im really new to Python and i got a lil Problem wit the subprocess class. Im starting an external Program with :
thread1.event.clear()
thread2.event.clear()
print "Sende Motoren STOP"
print "Gebe BILD in Auftrag"
proc = Popen(['gphoto2 --capture-image &'], shell=True, stdin=None, stdout=None, stderr=None, close_fds=True)
sleep (args.max+2)
thread1.event.set()
thread2.event.set()
sleep (args.tp-2-args.max)
My Problem is that in my shell were i Started the PythonScript i still get the outputs of GPHOTO2 and i got the feeling that Python is still waiting for GPHOTO to finish. Has anyone an idea? Greetings && a big THANK YOU Darkmaterial
asked 1 min ago
Python waiting for subprocess to finish
Aucun commentaire:
Enregistrer un commentaire