pymol-psico icon indicating copy to clipboard operation
pymol-psico copied to clipboard

Quiet does not silence functions with subprocess calls

Open TheWizier opened this issue 2 years ago • 0 comments

For instance, apbs_surface with quiet = True does not silence the executable run with subprocess.call. This can be fixed by using:

import os
import subprocess

retcode = subprocess.call(['echo', 'foo'],
    stdout=subprocess.DEVNULL,
    stderr=subprocess.STDOUT)

ideally the output from the executable should be printed on the current process' stdout so that users can redirect it using redirect_stdout

TheWizier avatar Feb 21 '23 10:02 TheWizier