Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
from pathlib import Path
import shutil
import subprocess
import io

_LOGGER = logging.getLogger(__name__)

Expand Down Expand Up @@ -129,9 +128,10 @@ def execute_simple_command(cmd_line, cwd=None, shell=False, env=None):
universal_newlines=True,
cwd=cwd,
shell=shell,
env=env)
env=env,
encoding='utf-8')
output_buffer = []
for line in io.TextIOWrapper(process.stdout, encoding='utf-8'):
for line in process.stdout:
output_buffer.append(line.rstrip())
_LOGGER.info(f"==[autorest]"+output_buffer[-1])
process.wait()
Expand Down