Created
December 17, 2012 10:11
-
-
Save mrvdb/4317236 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=== modified file 'openerp/tools/config.py' | |
*** openerp/tools/config.py 2012-12-09 22:53:49 +0000 | |
--- openerp/tools/config.py 2012-12-17 10:10:55 +0000 | |
*************** | |
*** 482,489 **** | |
--- 482,494 ---- | |
openerp.conf.addons_paths = self.options['addons_path'].split(',') | |
if opt.server_wide_modules: | |
+ # Take the commandline if specified | |
openerp.conf.server_wide_modules = map(lambda m: m.strip(), opt.server_wide_modules.split(',')) | |
+ elif self.options['server_wide_modules']: | |
+ # Take the config file, if any | |
+ openerp.conf.server_wide_modules = map(lambda m: m.strip(), self.options['server_wide_modules'].split(',')) | |
else: | |
+ # Nothing specified, just load web addon | |
openerp.conf.server_wide_modules = ['web'] | |
if complete: | |
openerp.modules.module.initialize_sys_path() | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment