Sending Node-Red Injection Value to Variable in a Python File on my Computer

Hi! I'm trying to send the value of an injection to a variable that I defined in a python file stored locally on my computer so I can use the value in my program, but I'm unsure on how to go about doing this. Any help is appreciated. Thanks.

How are you running the python progran via an exec node?
One way you could do it - if the python progran is already runing - would to add MQTT to the python progran and send the data that way.

If you are having NR start the progran, you can use the exec bode to start it and send the value with the command like you would if you were running the python program in a terminal session and passing it a parameter.