subprocess.check_output shows different behaviour on different machines

时间:2018-02-05 12:52:20

标签: python subprocess

I have two different machines at work and they show a weird behaviour.

When using subprocess in a python script to trigger external processes I get on one of the machines the output of that call as expected. On the other machine I see a shell / command line popping up, in which the statement is executed, then the window closes and then the return statement is empty.

I call it like that: f = subprocess.check_output(['svn.exe', '--help'])

And on the one machine the value of f is the command line output of svn --help on the other machine it's empty. I have no idea what causes this and how to react on that. Does anyone have an input?

Both machines run Windows 10 and Python 2.7.

0 个答案:

没有答案