I call another script with subprocess.check_call and I do not want to see on my console prints from the other script. I tried: stdout=subprocess.DEVNULL and stderr=subprocess.DEVNULL, but I still see some output printed.
With one of my script worked with stderr and with one with stdout. Why is not working?
subprocess.check_call(cmd, timeout=timeout_sec, shell=True, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
What can I found If I need stdout or stderr?