mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
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
This commit is contained in:
parent
c5c026557e
commit
4f8e2699db
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user