Added a comment about the default introduction example.
This commit is contained in:
parent
05963bf8e4
commit
ab8a986a1c
|
@ -1,6 +1,8 @@
|
|||
# This example is meant to be used from within the CadQuery module of FreeCAD.
|
||||
# From within FreeCAD, you can make changes to this script and then click
|
||||
# CadQuery > Execute Script, or you can press F2.
|
||||
# There are more examples in the Examples directory included with this module.
|
||||
# Ex026_Lego_Brick.py is highly recommended as a great example of what CadQuery can do.
|
||||
import cadquery
|
||||
import Part
|
||||
|
||||
|
|
|
@ -37,6 +37,7 @@ def _fc_path():
|
|||
os.path.join(os.path.expanduser("~"), "lib/freecad/lib"),
|
||||
"/usr/local/lib/freecad/lib",
|
||||
"/usr/lib/freecad/lib",
|
||||
"/opt/freecad/lib/",
|
||||
"/usr/bin/freecad/lib",
|
||||
]:
|
||||
if os.path.exists(_PATH):
|
||||
|
@ -84,6 +85,14 @@ def _fc_path():
|
|||
]:
|
||||
if os.path.exists(_PATH):
|
||||
return _PATH
|
||||
else:
|
||||
#Assume we're dealing with a Mac
|
||||
for _PATH in [
|
||||
os.path.join(os.path.expanduser("~"), "~/Library/Application Support/FreeCAD/lib"),
|
||||
"/Applications/FreeCAD.app/lib",
|
||||
]:
|
||||
if os.path.exists(_PATH):
|
||||
return _PATH
|
||||
|
||||
#Make sure that the correct FreeCAD path shows up in Python's system path
|
||||
sys.path.insert(0, _fc_path())
|
||||
sys.path.insert(0, _fc_path())
|
||||
|
|
Loading…
Reference in New Issue
Block a user