-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Welcome to the quPy wiki! This should be the new place for technical discussions about quPY. It was created to move the technical aspects out of the A&H forum (http://community.allen-heath.com/forums/topic/custom-made-fx-mute-foot-switch-tcpip/page/4) and start collaboration on this project.
For the moment it is just an unstuctured gathering of information. Maybe we will clean it up later ;-)
The dirname thing: This is nothing more than a bash command that finds the name of the current directory. It ensures that from which working directory ever you start the script, it knows where it lives itself.
If I remember correctly, I used quPy.sh as part of the PyCore Linux system init structure. (I’d need to log into my foot switch to check.) Basically, it attaches STDIN of start.sh to a FIFO, so that it later can send a shutdown command via that FIFO. startup.sh redirects it output to the system log.
The purpose of this: a) getting the foot switch software up and running on system start b) being able to later on log into your foot switch and monitor the debug output of the code on via the system log.
I think quPy.sh does not use the dirname trick because I symlinked it from the system init directory structure of piCore Linux, so dirname would think the script lives in some other place.
During development, you would simply run python ./App.py as root.