diff options
| author | Christophe Simonis <chs@odoo.com> | 2018-02-05 11:30:42 +0100 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2018-02-05 11:30:42 +0100 |
| commit | e5f2e6d3908bc4bfc397ef9ef164219e5fb50acc (patch) | |
| tree | 9201b190915d11e20ad4e216436a3215b71a341b /odoo | |
| parent | df1accbf539fbe4078a9816a19d1b5ee1f38e8f1 (diff) | |
| parent | b08185fc66ab83ec3d25b00beb00633517925520 (diff) | |
[MERGE] forward port branch 9.0 up to b08185fc66a
Diffstat (limited to 'odoo')
| -rw-r--r-- | odoo/cli/shell.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/odoo/cli/shell.py b/odoo/cli/shell.py index 1e847800956..203578e6f9a 100644 --- a/odoo/cli/shell.py +++ b/odoo/cli/shell.py @@ -62,6 +62,7 @@ class Shell(Command): def console(self, local_vars): if not os.isatty(sys.stdin.fileno()): + local_vars['__name__'] = '__main__' exec sys.stdin in local_vars else: if 'env' not in local_vars: |
