Skip to content

Commit

Permalink
Nicer fix
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonGrace2282 committed Apr 11, 2024
1 parent a39440a commit 00200c6
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions manim/utils/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,15 @@


def capture(command, cwd=None, command_input=None):
p = run(command, cwd=cwd, input=command_input, capture_output=True)
out, err = p.stdout.decode('utf-8'), p.stderr.decode('utf-8')
p = run(
command,
cwd=cwd,
input=command_input,
capture_output=True,
text=True,
encoding='utf-8'
)
out, err = p.stdout, p.stderr
return out, err, p.returncode


Expand Down

0 comments on commit 00200c6

Please sign in to comment.