How do I get the current path of the plugin

I have a helper script I am running with p = Popen(['python', ''])

How can I find the path to my plugin's static or home folder?

Since it is also Python, why not just import monitor and then call a function inside the script? Running subprocesses can be a lot more likely to go wrong or be generally more fiddly. If it must be run as a separate process, then use the multiprocessing module.

If you want to find the folder that the file is in, then inside that file you can do:

import os
path = os.path.dirname(os.path.abspath(__file__))

cool plugin project BTW...adafruit fan controller.