Calling .wait() on subprocess breaks the script I'm calling in the subprocess

53 views Asked by At

thanks for taking the time to read this post. Basically I'm trying to call syntaxnet's parsey mcparseface from a subprocess. For some reason it wont run unless I change the working directory. I can run the subprocess with the following.

process = subprocess.Popen("./syntaxnet/demo.sh", cwd="/home/kahless/models/syntaxnet")

The problem is I also need my script to wait until parsey finishes. So I tried to use the wait command

process.wait()

But for some reason when using .wait() or .communicate() parsey mcparseface wont complete correctly.

0

There are 0 answers