I have two scripts:
I want to distribute python.py to all people. The issue is, I don't want them to have to worry about also downloading perl.prl.
As a result, I made a python processor (proc.py ) that accepts perl.prl and takes each line and puts it into a file.write("line") command. It also accounts for string errors by adding backslashes where neccessary.
I can copy and paste every single line of perl.prl written as file.write("line1"); file.write("line2) etc....
and therefore when python.py executes, it can use file= open(filename,'w') in order to CREATE perl.prl temporarily. Once it creates perl.prl it can then run it, and then delete it.
This is all real. And it works. The issue is that it is annoying having to do all this. Does anyone know of an easier way for my python to "absorb" perl.prl so it can create perl.prl within the code?
This way I can avoid people having to download multiple files.