mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-25 17:36:18 +03:00
Correctly quote file names for WindowsViewer command
This commit is contained in:
parent
74b5cdde1b
commit
db092e7d82
|
@ -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