tools: Make Unicode from subprocess result in the CMake convert script

Fixes an issue with Python 3 in MSYS where it fails while trying to join
paths where one part is Unicode (default string on Python3) and the
second part are bytes (returned by the subprocess call).

Closes https://github.com/espressif/esp-idf/issues/5189
pull/5676/head
Roland Dobai 2020-04-27 16:15:52 +02:00
rodzic 69c8d9211f
commit 3b3050b09f
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -122,7 +122,7 @@ def convert_project(project_path):
for p in component_paths:
if "MSYSTEM" in os.environ:
cmd = ["cygpath", "-w", p]
p = subprocess.check_output(cmd).strip()
p = subprocess.check_output(cmd).decode('utf-8').strip()
converted_components += convert_component(project_path, p)