Popen context manager variant that raises CalledProcessError like check_call
Popen context manager variant that raises CalledProcessError like check_call.
- Context manager is not available in Python2.
- When exceptions happened in Python3 original context, the process might get stuck especially when the process is daemon. We try to kill the process implicitly when exception happens.
- Not closing stdin/stdout implicitly to make sure we communicate with the pipe correctly.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.