Fix a small issue about shlex.split not working well with win32 path
This commit is contained in:
		
							parent
							
								
									6a3c943ce2
								
							
						
					
					
						commit
						dd2425675b
					
				|  | @ -104,7 +104,10 @@ 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) | ||||
|         if sys.platform == "win32": | ||||
|             args = shlex.split(args, posix=False) | ||||
|         else: | ||||
|             args = shlex.split(args) | ||||
|     config = get_config() | ||||
|     pluginmanager = config.pluginmanager | ||||
|     try: | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue