give multiple arbitrary addons path to server
I've written this blueprint in relation with bug #507973 where a trashy patch is attached.
https:/
The idea is to have the ability to pass more than one addons path when launching server. The same affect server configuration file.
ex : ./openerp-server.py --addons-path /home/mysur/
Actually when config[
access to server/bin/addons folder to get ressources, ie access a file
within a folder, so it mlight be more logical to python methods or openerp-server methods like get_module_path.
When config[
python path with sys.path.insert, this one support dict.
We also have in bin/addons/init.py some functions that deal with modules
management but doesn't use config[
For now i don't really know what's the best way but basically we need :
- a method for adding extra addons path on startup (command line) or
server config file. This should make useless the usage of symbolic links
and in develppement process a more efficient way for switching between
different setup environnement or configuration for testing extra-addons
or community modules for example.
What's important is to have a way to add arbitrary module folder or
parent modules folder.
Maybe a new command line arg like --extra-addons-path can be a pretty
way for doing it.
Any thought are welcome.
Blueprint information
- Status:
- Not started
- Approver:
- None
- Priority:
- Undefined
- Drafter:
- None
- Direction:
- Needs approval
- Assignee:
- None
- Definition:
- New
- Series goal:
- None
- Implementation:
- Unknown
- Milestone target:
- None
- Started by
- Completed by
Related branches
Related bugs
Bug #507973: [trunk] [rev 1975] startup option --addons-path can't handle more than one addons path | Fix Released |
Sprints
Whiteboard
It is already implemented in trunk.
Path must be separated by comma. (,)
example:
openerp-server --addons-