Fix a small issue about shlex.split not working well with win32 path
This commit is contained in:
parent
6a3c943ce2
commit
dd2425675b
1
AUTHORS
1
AUTHORS
|
@ -87,3 +87,4 @@ Russel Winder
|
||||||
Ben Webb
|
Ben Webb
|
||||||
Alexei Kozlenok
|
Alexei Kozlenok
|
||||||
Cal Leeming
|
Cal Leeming
|
||||||
|
Feng Ma
|
||||||
|
|
|
@ -104,7 +104,10 @@ 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)
|
if sys.platform == "win32":
|
||||||
|
args = shlex.split(args, posix=False)
|
||||||
|
else:
|
||||||
|
args = shlex.split(args)
|
||||||
config = get_config()
|
config = get_config()
|
||||||
pluginmanager = config.pluginmanager
|
pluginmanager = config.pluginmanager
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue