User installed PLUGINs
Hi,
We'd like to be able to operate with a central installation of MG5_aMC, and still allow users to install their own plugins when they wish. It seems as though the current mechanism is to look for the PLUGIN module in MG5. One of our users pointed out that if you add to the __init__.py in the central PLUGIN directory:
import pkgutil
__path__ = pkgutil.
Then a local user can have a PLUGIN directory in their PYTHONPATH that will be searched in addition to the MG5_aMC PLUGIN directory (currently this doesn't work because it always searches the MG5_aMC path first, and looks for PLUGIN.X, where X is the user plugin; if it added the PLUGIN directory to the PYTHONPATH and tried to import X, then that would be extensible).
Is that possible? Is there some other mechanism that you have in mind for users to be able to extend the set of PLUGINs that are installed centrally?
Thanks,
Zach
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Zachary Marshall
- Solved:
- Last query:
- Last reply: