Fwiw, the following would work too:
with open(os.devnull, "r+b") as devnull: process = subprocess.Popen( ..., stdin=devnull, stdout=devnull, stderr=devnull)
« Back to merge proposal
Fwiw, the following would work too:
with open(os.devnull, "r+b") as devnull:
process = subprocess.Popen(
..., stdin=devnull, stdout=devnull, stderr=devnull)