Feb-09-2021, 08:56 PM
Hi,
I'm trying to execute the line below from a .py file but I get an error: File not found.
However, if I execute it directly as sh restartMM.sh, it executes with no errors.
What am I doing wrong?
TIA
I'm trying to execute the line below from a .py file but I get an error: File not found.
However, if I execute it directly as sh restartMM.sh, it executes with no errors.
What am I doing wrong?
TIA
#sub.call("sh /home/pi/MagicMirror/restartMM.sh", shell=True) # same results p = sub.run("sh /home/pi/MagicMirror/restartMM.sh") print(p.returncode)