mirror of
https://github.com/google/brotli.git
synced 2026-07-08 17:56:58 +00:00
[PR #43] [python] fix calling python script as subprocess on Windows #631
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Original Pull Request: https://github.com/google/brotli/pull/43
State: closed
Merged: Yes
Hello,
This patch fixes an issue which occurs when calling a python script as a subprocess from within another python script on Windows.
Instead of executing the child script through the shell, I run it with the same
sys.executablethat was used to run the parent script.Besides, I'm using
subprocess.check_callinstead ofsubprocess.callto halt execution if subprocess exits with non-zero return code.Cheers,
Cosimo