The script crashes (returns to the shell) without any error message after "ls" is executed (NOT showing "abcd").
Code: Select all
#!/usr/bin/python import subprocess import time import RPIO from RPIO import PWM PWM.setup() # .. doing some PWM commands .... PWM.cleanup() subprocess.call("ls") time.sleep(3) print("abcd")
If i comment out the lines with PWM... , the script works as expected, showing "abcd" (=running to the end).
I need both PWM and script shall continue to run after subprocess call . How can i make this work ?