summaryrefslogtreecommitdiff
path: root/odoo/cli/command.py
diff options
context:
space:
mode:
Diffstat (limited to 'odoo/cli/command.py')
-rw-r--r--odoo/cli/command.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/odoo/cli/command.py b/odoo/cli/command.py
index 1d28506fa0b..113c86d5631 100644
--- a/odoo/cli/command.py
+++ b/odoo/cli/command.py
@@ -5,7 +5,7 @@ import os
from os.path import join as joinpath, isdir
import odoo
-from odoo.modules import get_modules, get_module_path
+from odoo.modules import get_modules, get_module_path, initialize_sys_path
commands = {}
@@ -48,6 +48,7 @@ def main():
# Subcommand discovery
if len(args) and not args[0].startswith("-"):
logging.disable(logging.CRITICAL)
+ initialize_sys_path()
for module in get_modules():
if isdir(joinpath(get_module_path(module), 'cli')):
__import__('odoo.addons.' + module)