aboutsummaryrefslogtreecommitdiffstats
path: root/cad/freecad/files/patch-src_Gui_FreeCADGuiInit.py
diff options
context:
space:
mode:
Diffstat (limited to 'cad/freecad/files/patch-src_Gui_FreeCADGuiInit.py')
-rw-r--r--cad/freecad/files/patch-src_Gui_FreeCADGuiInit.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/cad/freecad/files/patch-src_Gui_FreeCADGuiInit.py b/cad/freecad/files/patch-src_Gui_FreeCADGuiInit.py
new file mode 100644
index 000000000000..27f093428559
--- /dev/null
+++ b/cad/freecad/files/patch-src_Gui_FreeCADGuiInit.py
@@ -0,0 +1,20 @@
+--- ./src/Gui/FreeCADGuiInit.py.orig Sat Feb 24 11:41:26 2007
++++ ./src/Gui/FreeCADGuiInit.py Sun Apr 29 10:08:42 2007
+@@ -31,7 +31,7 @@
+
+
+ # imports the one and only
+-import FreeCAD, FreeCADGui
++import FreeCAD, FreeCADGui, sys
+
+ # shortcuts
+ Gui = FreeCADGui
+@@ -83,6 +83,8 @@
+ #print FreeCAD.ConfigGet("HomePath")
+ if os.path.isdir(FreeCAD.ConfigGet("HomePath")+'Mod'):
+ ModDir = FreeCAD.ConfigGet("HomePath")+'Mod'
++ elif sys.platform[:7] == 'freebsd':
++ ModDir = '/usr/local/share/FreeCAD/Mod'
+ else:
+ if os.path.isdir(FreeCAD.ConfigGet("HomePath")+'src\\Mod'):
+ ModDir = FreeCAD.ConfigGet("HomePath")+'src\\Mod'