I am totally new to subprocess and need to be able to send a variable from one python file to another using this library.
I have a little idea of how to send the data from the master file (something like this?):
p = subprocess.Popen(['python', 'slave.py'], stdout=PIPE, stdin=PIPE, stderr=PIPE)
stdout_data = p.communicate(input='string')
But how do I call that variable in the other file?
Unfortunately, I cannot use any other module because of the nature of my project.