Yes, but the question is, what if ExtMan becomes the official addon manager, and then it lives not in the user's $HOME/.FreeCAD/Mod directory but in a system directory, /usr/share/freecad/Mod?
Then how would you update it? This is the problem with the current Addon Manager. Would you ask the user to run FreeCAD with superuser privileges one time to self update it? Is there a better solution? So this is a general question for any addon manager that is meant to be included with FreeCAD.
What I think makes some sense is that the addon manager looks for updated code in a user writeable place, and if that is not found, default to the normal code.
Code: Select all
try:
import ext_man.updates as regular
except ImportError:
import ext_man.regular as regular
regular.parse_page(...)
# rest of code
The alternative, self-updating, would be to download and rewrite the entire /usr/share/freecad/Mod/ext_man/ directory which requires writing to system directories.