What is the return value of subprocess.call()?

后端 未结 3 1985
野性不改
野性不改 2020-12-28 12:17

I am not sure what the return value of subprocess.call() means.

  • Can I safely assume a zero value will always mean that the command executed suc

3条回答
  •  失恋的感觉
    2020-12-28 12:51

    Yes, Subprocess.call returns "actual process return code".

    You can check official documentation of Subprocess.call and Subprocess.Popen.returncode

提交回复
热议问题