diff options
| author | Christophe Simonis <chs@odoo.com> | 2017-04-24 12:53:34 +0200 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2017-04-24 12:53:34 +0200 |
| commit | 64b7d4e8a8df180bc598e2df56992d373e23b44b (patch) | |
| tree | e5683925601ffc151d185b374cd8b4a713d23def /odoo/cli/start.py | |
| parent | 7350a50a2eb41f8df595b4791edfe5ee3f06de63 (diff) | |
| parent | 3f6e573c67a2ef6cbaf9bbeda1d0a2f286809266 (diff) | |
[MERGE] forward port branch 10.0 up to 3f6e573c67a
Diffstat (limited to 'odoo/cli/start.py')
| -rw-r--r-- | odoo/cli/start.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/odoo/cli/start.py b/odoo/cli/start.py index 043c411ad8d..bf15776295b 100644 --- a/odoo/cli/start.py +++ b/odoo/cli/start.py @@ -35,6 +35,9 @@ class Start(Command): args, unknown = parser.parse_known_args(args=cmdargs) + # When in a virtualenv, by default use it's path rather than the cwd + if args.path == '.' and os.environ.get('VIRTUAL_ENV'): + args.path = os.environ.get('VIRTUAL_ENV') project_path = os.path.abspath(os.path.expanduser(os.path.expandvars(args.path))) module_root = get_module_root(project_path) db_name = None |
