Whenever I call executable c code from Python using the method below, I get a "Bad file descriptor" error. When I run the code from the command line, it works fine. Help me please!?
import subprocess
p = subprocess.call(['C:\Working\Python\celp.exe', '-o', 'ofile'], stdin=subprocess.PIPE, stderr=subprocess.STDOUT)
In [84]: %run "C:\Working\Python\test.py"
Error: : Bad file descriptor
source
share