Trying to start python script with runcommand-onstart/end
-
I have a python script that runs a demo led (gpo) sequence loop on my buttons which is also triggered to stop by a PIR sensor (vegas mode or gambling machine light show) that i like to run when retropie is in the menu's and a full on python script that i like to run when a game runs.
Therefor i figured out this can be done with the runcommand-onstart.sh and runcommand-onend.sh
In those files i tried calling "sudo python allon.py" etc. as the files are in the same directory and I also tried naming those files to "runcommand-onstart.py" etc. (Found online that both can be used) But none of those seem to work.
Do i also need to add some instructions to the "runcommand.cfg"
-
Try running it with full paths to both the python executable and your python script. No need for anything in runcommand.cfg.
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.