Skip to content

Commit

Permalink
Print subprocess output as text
Browse files Browse the repository at this point in the history
  • Loading branch information
mementomoryn authored Jan 18, 2025
1 parent 7036eff commit 0928017
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def download(link, out, headers=None):


def run_command(command: list[str], output: bool):
cmd = subprocess.run(command, capture_output=True, env=os.environ.copy())
cmd = subprocess.run(command, capture_output=True, env=os.environ.copy(), text=True)

try:
cmd.check_returncode()
Expand Down

0 comments on commit 0928017

Please sign in to comment.