Looks like it would work for updates.
To avaoid a restart maybe some code could be lifted from here https://github.com/FreeCAD/FreeCAD/blob ... CADInit.py?
Great thread btw, I'm learning a lot from vocx
Looks like it would work for updates.
likewise
Code: Select all
git reset --hard HEAD~1
gitpython is pretty cool
Code: Select all
repo.git.reset('--hard','origin/master~1')
I mean, as long as the external workbenches and macros are collected in Git repositories it sounds like the Addon Manager should basically wrap around the gitpython functions. However, it seems that GitPython is entirely optional. I wonder if it makes sense to not use gitpython. It seems using this module would greatly simplify this headless mode that Kunda tries to implement. Of course, it's one more dependency, but, well, perhaps it's an important and basic one that it just makes sense to use it.
You're exactly correct. Now gitpython is the default with .zip fall back. The fall back was because of Windows and problems with py2. With py3 this is no longer an issue and the .7z, .AppImage, and .dmg's support gitpython for py3.vocx wrote: ↑Fri Oct 25, 2019 12:36 am I mean, as long as the external workbenches and macros are collected in Git repositories it sounds like the Addon Manager should basically wrap around the gitpython functions. However, it seems that GitPython is entirely optional. I wonder if it makes sense to not use gitpython. It seems using this module would greatly simplify this headless mode that Kunda tries to implement. Of course, it's one more dependency, but, well, perhaps it's an important and basic one that it just makes sense to use it.
Code: Select all
wget https://gist.githubusercontent.com/luzpaz/f3bfaaef8aaec9c66b96e0941f6ed7a5/raw/185540a1d1cdb55955c6cb84346c76a7598de6e5/AddonMangerHeadless.py
freecadcmd -c AddonManagerHeadless.py