I have a small Python script that runs in Indigo and I would like to store its pid somewhere so a second script (called in a trigger) could find the pid and use it and send an interrupt to the first script. The normal place for this would be in /var/run. But, that is not writeable to the Indigo process. Currently I am using ~/Library/Python. What ideas do you have for a good place to save the pid?
BTW, I did not want to use a variable because the interruptible script could also be run outside of indigo, Though, I guess I could use the RESTFul API to store the pid in a variable.