Skip to content

Quiet does not silence functions with subprocess calls #16

@TheWizier

Description

@TheWizier

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions