Merge pull request #53 from cgohlke/patch-1

BUG: Windows image viewer unable to open image
This commit is contained in:
Alex Clark ☺ 2013-03-05 10:47:45 -08:00
commit 9ed98814ce

View File

@ -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)