Fix eclipse build: “UnicodeDecodeError: 'ascii' codec can't decode byte”

Closes https://github.com/espressif/esp-idf/pull/6505
This commit is contained in:
Patryk Krzywdziński
2021-02-04 15:21:01 +01:00
committed by Roland Dobai
parent 131bfd90a4
commit 85b96879f2

View File

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