[IMP] oe read: use common.set_addons().

bzr revid: vmt@openerp.com-20130121162701-1230alp0cc2l2u5e
This commit is contained in:
Vo Minh Thu 2013-01-21 17:27:01 +01:00
parent 9d56c47916
commit 59e0ef08c4
1 changed files with 1 additions and 5 deletions

View File

@ -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)