From 5374302e93c397233a52cbbca023cda7191a592a Mon Sep 17 00:00:00 2001 From: Sebastian Hoogen Date: Mon, 30 Jun 2014 11:45:42 +0200 Subject: [PATCH] Add default for path to OpenSCAD on Mac OS X --- src/Mod/OpenSCAD/OpenSCADUtils.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Mod/OpenSCAD/OpenSCADUtils.py b/src/Mod/OpenSCAD/OpenSCADUtils.py index 2f301f3e86..7d6a2f3467 100644 --- a/src/Mod/OpenSCAD/OpenSCADUtils.py +++ b/src/Mod/OpenSCAD/OpenSCADUtils.py @@ -54,6 +54,11 @@ def searchforopenscadexe(): for testpath in testpaths: if os.path.isfile(testpath): return testpath + elif sys.platform == 'darwin': + #test the default path + testpath="/Applications/OpenSCAD.app/Contents/MacOS/OpenSCAD" + if os.path.isfile(testpath): + return testpath else: #unix p1=subprocess.Popen(['which','openscad'],stdout=subprocess.PIPE) if p1.wait() == 0: