Skip to content

Commit

Permalink
[FIX] ommit (-d, --database) in code reexecution's sys.args stripping
Browse files Browse the repository at this point in the history
Stripping -d from sys.argv prevent odoo's `start` subcommand to work
properly. Besides, -d is not harmful for code reececution
  • Loading branch information
amigrave committed Aug 4, 2014
1 parent 2653326 commit f3ab786
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openerp/tools/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -1131,7 +1131,7 @@ def next(self):

def stripped_sys_argv(*strip_args):
"""Return sys.argv with some arguments stripped, suitable for reexecution or subprocesses"""
strip_args = sorted(set(strip_args) | set(['-s', '--save', '-d', '--database', '-u', '--update', '-i', '--init']))
strip_args = sorted(set(strip_args) | set(['-s', '--save', '-u', '--update', '-i', '--init']))
assert all(config.parser.has_option(s) for s in strip_args)
takes_value = dict((s, config.parser.get_option(s).takes_value()) for s in strip_args)

Expand Down

0 comments on commit f3ab786

Please sign in to comment.