[IMP] oe read: use common.set_addons().
bzr revid: vmt@openerp.com-20130121162701-1230alp0cc2l2u5e
This commit is contained in:
parent
9d56c47916
commit
59e0ef08c4
|
@ -15,11 +15,7 @@ def run(args):
|
|||
import openerp
|
||||
config = openerp.tools.config
|
||||
config['log_handler'] = [':CRITICAL']
|
||||
if args.addons:
|
||||
args.addons = args.addons.split(':')
|
||||
else:
|
||||
args.addons = []
|
||||
config['addons_path'] = ','.join(args.addons)
|
||||
common.set_addons(args)
|
||||
openerp.netsvc.init_logger()
|
||||
registry = openerp.modules.registry.RegistryManager.get(
|
||||
args.database, update_module=False)
|
||||
|
|
Loading…
Reference in New Issue