mirror of
https://github.com/google/brotli.git
synced 2026-07-09 02:08:06 +00:00
[PR #43] [MERGED] [python] fix calling python script as subprocess on Windows #629
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?
📋 Pull Request Information
Original PR: https://github.com/google/brotli/pull/43
Author: @anthrotype
Created: 3/23/2015
Status: ✅ Merged
Merged: 3/23/2015
Merged by: @szabadka
Base:
master← Head:fix_py📝 Commits (1)
1786680[python] fix calling python script as subprocess on Windows📊 Changes
2 files changed (+12 additions, -19 deletions)
View changed files
📝
python/tests/compatibility_test.py(+5 -8)📝
python/tests/roundtrip_test.py(+7 -11)📄 Description
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
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.