mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-10-30 23:47:27 +03:00 
			
		
		
		
	Merge pull request #467 from cgohlke/patch-1
Correctly quote file names for WindowsViewer command
This commit is contained in:
		
						commit
						8dd8bdf238
					
				|  | @ -103,8 +103,9 @@ if sys.platform == "win32": | |||
|     class WindowsViewer(Viewer): | ||||
|         format = "BMP" | ||||
|         def get_command(self, file, **options): | ||||
|             return ("start /wait %s && ping -n 2 127.0.0.1 >NUL " | ||||
|                     "&& del /f %s" % (quote(file), quote(file))) | ||||
|             return ('start "Pillow" /WAIT "%s" ' | ||||
|                     '&& ping -n 2 127.0.0.1 >NUL ' | ||||
|                     '&& del /f "%s"' % (file, file)) | ||||
| 
 | ||||
|     register(WindowsViewer) | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user