Skip to content

Commit

Permalink
Add default for path to OpenSCAD on Mac OS X
Browse files Browse the repository at this point in the history
  • Loading branch information
5263 authored and wwmayer committed Jul 1, 2014
1 parent b83f07f commit 5374302
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Mod/OpenSCAD/OpenSCADUtils.py
Expand Up @@ -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:
Expand Down

0 comments on commit 5374302

Please sign in to comment.