From 33a405539039d99d3ffb622f8658cf05c3d63e40 Mon Sep 17 00:00:00 2001 From: Pawel Bogut Date: Thu, 29 Mar 2018 12:07:35 +0200 Subject: [PATCH] OpenScad path detection fix for python3 on unix --- src/Mod/OpenSCAD/OpenSCADUtils.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Mod/OpenSCAD/OpenSCADUtils.py b/src/Mod/OpenSCAD/OpenSCADUtils.py index 5679d5f1e4..4abcde8d16 100644 --- a/src/Mod/OpenSCAD/OpenSCADUtils.py +++ b/src/Mod/OpenSCAD/OpenSCADUtils.py @@ -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():