Skip to content

Commit

Permalink
Use devnull
Browse files Browse the repository at this point in the history
  • Loading branch information
WyattBlue committed Dec 7, 2023
1 parent b01f125 commit 4e9eaa1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions auto_editor/utils/func.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,9 @@ def merge(start_list: np.ndarray, end_list: np.ndarray) -> BoolList:


def get_stdout(cmd: list[str]) -> str:
from subprocess import PIPE, Popen
from subprocess import DEVNULL, PIPE, Popen

stdout, _ = Popen(cmd, stdout=PIPE, stderr=PIPE).communicate()
stdout, _ = Popen(cmd, stdin=DEVNULL, stdout=PIPE, stderr=PIPE).communicate()
return stdout.decode("utf-8", "replace")


Expand Down

0 comments on commit 4e9eaa1

Please sign in to comment.