Fix shell argument split in win32

This fixes the bug inserted by accident in #1523
This commit is contained in:
Bruno Oliveira 2016-05-23 20:41:47 -03:00
parent 6f98cd6faa
commit 9fb5ddf778
1 changed files with 1 additions and 1 deletions

View File

@ -104,7 +104,7 @@ def _prepareconfig(args=None, plugins=None):
elif not isinstance(args, (tuple, list)):
if not isinstance(args, str):
raise ValueError("not a string or argument list: %r" % (args,))
args = shlex.split(args, posix=sys.platform == "win32")
args = shlex.split(args, posix=sys.platform != "win32")
config = get_config()
pluginmanager = config.pluginmanager
try: