OpenScad path detection fix for python3 on unix

This commit is contained in:
Pawel Bogut
2018-03-29 12:07:35 +02:00
committed by wmayer
parent 74d7adef10
commit 33a4055390

View File

@@ -85,7 +85,10 @@ def searchforopenscadexe():
else: #unix
p1=subprocess.Popen(['which','openscad'],stdout=subprocess.PIPE)
if p1.wait() == 0:
opath=p1.stdout.read().split('\n')[0]
output = p1.stdout.read()
if sys.version_info.major >= 3:
output = output.decode("utf-8")
opath = output.split('\n')[0]
return opath
def workaroundforissue128needed():