subprocess.run(cmd, shell=True, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)

this is how to suppress any output when executing a subprocess in python.

Categories: python

0 Comments

Leave a Reply

Your email address will not be published.