How to run Addon Manager in Headless mode?
Posted: Tue Oct 22, 2019 9:28 pm
I'd like to attempt to modify the Addon Manager source so that it could be run headless.
I've noticed that there is a method called FreeCAD.GuiUp for logic that pertains to progress bars and dialog windows can be put in to..correct ?
What I'm trying to do specifically is first access functions within src/Mod/AddonManager/ like querying the FreeCAD-addons Github repo, and listing their contents, listing what addons currently live in the local machine, list which addons have updated, install an addon/macro, remove and addon/macro etc...
Note: I opened a FR thread https://forum.freecadweb.org/viewtopic.php?f=8&t=40297
but felt it was more appropriate to ask for help in the Python scripting subforum in a separate thread
Edit:
To test the script simply:
I've noticed that there is a method called FreeCAD.GuiUp for logic that pertains to progress bars and dialog windows can be put in to..correct ?
Code: Select all
if FreeCAD.GuiUp:
babyShark()
else:
mommyShark()
What I'm trying to do specifically is first access functions within src/Mod/AddonManager/ like querying the FreeCAD-addons Github repo, and listing their contents, listing what addons currently live in the local machine, list which addons have updated, install an addon/macro, remove and addon/macro etc...
Note: I opened a FR thread https://forum.freecadweb.org/viewtopic.php?f=8&t=40297
but felt it was more appropriate to ask for help in the Python scripting subforum in a separate thread
Edit:
To test the script simply:
Code: Select all
wget https://gist.githubusercontent.com/luzpaz/f3bfaaef8aaec9c66b96e0941f6ed7a5/raw/AddonMangerHeadless.py
FreeCAD -c AddonMangerHeadless.py