diff options
| author | Raphael Collet <rco@openerp.com> | 2016-09-02 16:16:50 +0200 |
|---|---|---|
| committer | Raphael Collet <rco@openerp.com> | 2016-09-02 17:28:12 +0200 |
| commit | 4a700d0ad9eecb00233f734042a96c3959aa7e83 (patch) | |
| tree | 7dffd79a4d3d7e19110a0f509e37ff8ff9eedc36 /odoo/cli/command.py | |
| parent | 9e64f9f9514194d74e166b032add8511182f2677 (diff) | |
[FIX] odoo: rename imports and adapt import hooks
Diffstat (limited to 'odoo/cli/command.py')
| -rw-r--r-- | odoo/cli/command.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/odoo/cli/command.py b/odoo/cli/command.py index 2f2fffa18b4..fa22fd5baf1 100644 --- a/odoo/cli/command.py +++ b/odoo/cli/command.py @@ -3,8 +3,8 @@ import sys import os from os.path import join as joinpath, isdir -import openerp -from openerp.modules import get_modules, get_module_path +import odoo +from odoo.modules import get_modules, get_module_path commands = {} @@ -17,7 +17,7 @@ class CommandType(type): commands[name] = cls class Command(object): - """Subclass this class to define new openerp subcommands """ + """Subclass this class to define new odoo subcommands """ __metaclass__ = CommandType def run(self, args): @@ -42,7 +42,7 @@ def main(): # commands from modules if len(args) > 1 and args[0].startswith('--addons-path=') and not args[1].startswith("-"): # parse only the addons-path, do not setup the logger... - openerp.tools.config._parse_config([args[0]]) + odoo.tools.config._parse_config([args[0]]) args = args[1:] # Default legacy command @@ -54,7 +54,7 @@ def main(): logging.disable(logging.CRITICAL) for module in get_modules(): if isdir(joinpath(get_module_path(module), 'cli')): - __import__('openerp.addons.' + module) + __import__('odoo.addons.' + module) logging.disable(logging.NOTSET) command = args[0] args = args[1:] |
