Fix shell argument split in win32
This fixes the bug inserted by accident in #1523
This commit is contained in:
parent
6f98cd6faa
commit
9fb5ddf778
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue