Merge branch 'bugfix/eclipse_make_decode_v3.3' into 'release/v3.3'

tools: Fix Eclipse build: “UnicodeDecodeError: 'ascii' codec can't decode byte” (v3.3)

See merge request espressif/esp-idf!12361
This commit is contained in:
Roland Dobai 2021-07-13 15:34:50 +00:00
commit bcf14bca1e

View File

@ -20,7 +20,7 @@ def check_path(path):
pass
paths[path] = path # cache as failed, replace with success if it works
try:
winpath = subprocess.check_output(["cygpath", "-w", path]).decode().strip()
winpath = subprocess.check_output(['cygpath', '-w', path]).decode('utf-8').strip()
except subprocess.CalledProcessError:
return path # something went wrong running cygpath, assume this is not a path!
if not os.path.exists(winpath):