taking my first steps in FreeCAD Python programming.
First of all I'm on Macos 10.10.5 Yosemite.
I created a Hello Word 'Init.py' file and put it to a directory 'cloud9' inside 'Mod' as instructed,
but I saw no output in the Python console nor in Report view.
To investigate this further I created following six files:
Code: Select all
nyholku$ cat ~/Library/Preferences/FreeCAD/Mod/cloud9/Init.py
print("Hello from ~/Library/PreferencesFreeCAD/Mod/cloud9/Init.py")
Code: Select all
nyholku$ cat ~/Library/Preferences/FreeCAD/Mod/cloud9/InitGUI.py
print("Hello from ~/Library/PreferencesFreeCAD/Mod/cloud9/InitGUI.py")
Code: Select all
nyholku$ cat ~/Library/Application\ Support/FreeCAD/Mod/cloud9/InitGUI.py
print("Hello from ~/Library/Application Support/Mod/cloud9/InitGUI.py")
Code: Select all
nyholku$ cat ~/Library/Application\ Support/FreeCAD/Mod/cloud9/Init.py
print("Hello from ~/Library/Application Support/Mod/cloud9/Init.py")
Code: Select all
nyholku$ cat /Applications/FreeCAD.app/Contents/Mod/cloud9/InitGUI.py
print("Hello from /Application/FreeCAD.app/Contents/Mod/cloud9/InitGUI.py")
Code: Select all
nyholku$ cat /Applications/FreeCAD.app/Contents/Mod/cloud9/Init.py
print("Hello from /Application/FreeCAD.app/Contents/Mod/cloud9/Init.py")
~/Library/PreferencesFreeCAD/Mod/cloud9/InitGUI.py
So my question is what am I doing wrong with 'Init.py'?
And what is the official place for these files in Mac?
Should I file a bug report about the documentation (wiki) that seems to be slightly off?
Should I file bug report about the 'wrong' location for the 'Mod' directory in Macos,
I don't think it should go to Preferences, rater to Application Support.
Code: Select all
Run Gui init script
Init: Running FreeCADGuiInit.py start script...
Init: Searching modules...
Init: Initializing /Applications/FreeCAD.app/Contents/Mod/Sketcher... done
Init: Initializing /Applications/FreeCAD.app/Contents/Mod/ReverseEngineering... done
Init: Initializing /Applications/FreeCAD.app/Contents/Mod/Image... done
Init: Initializing /Applications/FreeCAD.app/Contents/Mod/PartDesign... done
Init: Initializing /Applications/FreeCAD.app/Contents/Mod/Ship... done
Init: Initializing /Applications/FreeCAD.app/Contents/Mod/Plot... done
Init: Initializing /Applications/FreeCAD.app/Contents/Mod/MeshPart... done
Init: Initializing /Applications/FreeCAD.app/Contents/Mod/OpenSCAD... done
Init: Initializing /Applications/FreeCAD.app/Contents/Mod/Fem... done
Init: Initializing /Applications/FreeCAD.app/Contents/Mod/Spreadsheet... done
Hello from ~/Library/PreferencesFreeCAD/Mod/cloud9/InitGUI.py
Init: Initializing /Users/nyholku/Library/Preferences/FreeCAD/Mod/cloud9... done
Init: Initializing /Applications/FreeCAD.app/Contents/Mod/Start... done
Init: Initializing /Applications/FreeCAD.app/Contents/Mod/Points... done
Init: Initializing /Applications/FreeCAD.app/Contents/Mod/Draft... done
Init: Initializing /Applications/FreeCAD.app/Contents/Mod/Test... done
Init: Initializing /Applications/FreeCAD.app/Contents/Mod/Import... done
Init: Initializing /Applications/FreeCAD.app/Contents/Mod/Complete... done
Init: Initializing /Applications/FreeCAD.app/Contents/Mod/Web... done
Init: Initializing /Applications/FreeCAD.app/Contents/Mod/Material... done
Init: Initializing /Applications/FreeCAD.app/Contents/Mod/Raytracing... done
Init: Initializing /Applications/FreeCAD.app/Contents/Mod/Mesh... done
Init: Initializing /Users/nyholku/Library/Preferences/FreeCAD/Mod/.DS_Store(InitGui.py not found)... ignore
Init: Initializing /Applications/FreeCAD.app/Contents/Mod/Path... done
Init: Initializing /Applications/FreeCAD.app/Contents/Mod/Arch... done
Init: Initializing /Applications/FreeCAD.app/Contents/Mod/Robot... done
Init: Initializing /Applications/FreeCAD.app/Contents/Mod/Part... done
Init: Initializing /Applications/FreeCAD.app/Contents/Mod/Idf(InitGui.py not found)... ignore
Init: Initializing /Applications/FreeCAD.app/Contents/Mod/Inspection... done
Init: Initializing /Applications/FreeCAD.app/Contents/Mod/Drawing... done
Init: Loading FreeCAD GUI
Init: Running FreeCADGuiInit.py start script... done
Init: Activating default workbench StartWorkbench
Loading GUI of Web module... done
Loading GUI of Start module... done
Loading Start module... done
Init: Showing main window
Main window restored
Show main window
Toolbars restored
3Dconnexion framework not found!
Init: Entering event loop
Init: Processing command line files