tools: Fix Python 3 incompatibility for building with Eclipse on Windows

This commit is contained in:
Roland Dobai 2020-09-09 12:59:07 +02:00
parent 6c5fc42114
commit 518e1da637

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]).strip()
winpath = subprocess.check_output(["cygpath", "-w", path]).decode().strip()
except subprocess.CalledProcessError:
return path # something went wrong running cygpath, assume this is not a path!
if not os.path.exists(winpath):