0

Hence I was writing this py program.

import subprocess
string="ihateminority.py"
process=subprocess.Popen(string,stdin=subprocess.PIPE,stdout=subprocess.PIPE)
res=process.communicate("3 5")
print res[0]

And I got this Window Error.

Obviously, the error came from the library, not me. Is there anyway to fix this, or just simply avoid id. (I cant use external library)

Glorfindel
  • 21,988
  • 13
  • 81
  • 109
Realdeo
  • 449
  • 6
  • 19

1 Answers1

0

That's because "ihateminority.py" is not a valid Win32 application. You should call "python.exe" and pass it "ihateminority.py" as an argument.

user3553031
  • 5,990
  • 1
  • 20
  • 40