I know linux solutions of opening a /dev/null and redirecting stout to it.
(like Prevent subprocess of subprocess from writing to stdout or similar ones)
What is the solution in windows?
I know linux solutions of opening a /dev/null and redirecting stout to it. (like
Share
Use the same approach, but use
os.devnullwhich is the portable solution. On Windows this will send the output toNUL.In fact, this solution is already recommended in the question you linked to: