I have two modules: reader.py and processor.py. The reader.py reads an XML configuration file, validates it, and stores its values in an object. It then calls the processor.py and passes the object to it.
The project requirements state that reader must be compiled to executable. I do this using py2exe. Now that reader is an executable, how can it pass values to processor? When they were both scripts it would be as simple as
from processor import myFunc
myFunc(myArgs)
but now that reader is an executable I launch processor by
subprocess.call([“python”, “processor.py”])
How can I pass it the object with the variables red from the xml file? I don’t want to do it all as a string, because re-parsing the string would defeat the purpose of reader