From 12f4190c9324521f0ac95e936035e8d64f6a0ee7 Mon Sep 17 00:00:00 2001 From: Sebastian Hoogen Date: Wed, 10 Jul 2013 20:52:23 +0200 Subject: [PATCH] OpenSCAD: call which to find openscad executable on all platforms except 'win32' --- src/Mod/OpenSCAD/OpenSCADUtils.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Mod/OpenSCAD/OpenSCADUtils.py b/src/Mod/OpenSCAD/OpenSCADUtils.py index 4f0bab464..c42cf7456 100644 --- a/src/Mod/OpenSCAD/OpenSCADUtils.py +++ b/src/Mod/OpenSCAD/OpenSCADUtils.py @@ -48,11 +48,11 @@ def searchforopenscadexe(): for testpath in testpaths: if os.path.isfile(testpath): return testpath - else: - p1=subprocess.Popen(['which','openscad'],stdout=subprocess.PIPE) - if p1.wait() == 0: - opath=p1.stdout.read().split('\n')[0] - return opath + else: #unix + p1=subprocess.Popen(['which','openscad'],stdout=subprocess.PIPE) + if p1.wait() == 0: + opath=p1.stdout.read().split('\n')[0] + return opath def workaroundforissue128needed(): '''sets the import path depending on the OpenSCAD Verion