Merge pull request #1566 from nicoddemus/fix-win32-path

Fix shell argument split in win32
This commit is contained in:
Ronny Pfannschmidt 2016-05-24 08:14:01 +02:00
commit 436e13ac25
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)): elif not isinstance(args, (tuple, list)):
if not isinstance(args, str): if not isinstance(args, str):
raise ValueError("not a string or argument list: %r" % (args,)) 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() config = get_config()
pluginmanager = config.pluginmanager pluginmanager = config.pluginmanager
try: try: