Merge pull request #1566 from nicoddemus/fix-win32-path
Fix shell argument split in win32
This commit is contained in:
commit
436e13ac25
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue