This script depends on the current working directory (the location from which it’s executed)
If you change the relative path
Documents/python3_stuff/rig_FT232H.py into an absolute path like
/home/patch/Documents/python3_stuff/rig_FT232H.py (if using Patchbox OS) or
/home/pi/Documents/python3_stuff/rig_FT232H.py (if using Raspberry Pi OS, or just change the ‘pi’ to whatever is your main user), then it can be executed from any context. The
pisound-btn scripts are executed from
/root/ as the current working directory (often abbreviated as CWD).
. at the start of the line is a synonym for
source command as described here - it’s for ‘importing’ another script into the current one, so you can call some special functions defined in another script. In your case, you just want to execute your StartRig.sh script
So your StartRig.sh script should look like this:
# On OSes other than Patchbox OS, change 'patch' above into whatever is the main user on your system
Your button script should look like this:
Final thing to make sure is that
chmod +x was done on StartRig.sh and your button script.