mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-11 04:07:21 +03:00
Merge pull request #53 from cgohlke/patch-1
BUG: Windows image viewer unable to open image
This commit is contained in:
commit
9ed98814ce
|
@ -98,7 +98,8 @@ if sys.platform == "win32":
|
|||
class WindowsViewer(Viewer):
|
||||
format = "BMP"
|
||||
def get_command(self, file, **options):
|
||||
return "start /wait %s && del /f %s" % (file, file)
|
||||
return ("start /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