mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-27 01:34:24 +03:00
Reorder/refactor for consistency
This commit is contained in:
parent
3a1f532acf
commit
09f3fbe9b4
|
@ -101,6 +101,7 @@ class Viewer(object):
|
||||||
|
|
||||||
# --------------------------------------------------------------------
|
# --------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
if sys.platform == "win32":
|
if sys.platform == "win32":
|
||||||
|
|
||||||
class WindowsViewer(Viewer):
|
class WindowsViewer(Viewer):
|
||||||
|
@ -161,14 +162,15 @@ else:
|
||||||
command = executable = "display"
|
command = executable = "display"
|
||||||
return command, executable
|
return command, executable
|
||||||
|
|
||||||
|
if which("display"):
|
||||||
|
register(DisplayViewer)
|
||||||
|
|
||||||
class EogViewer(UnixViewer):
|
class EogViewer(UnixViewer):
|
||||||
def get_command_ex(self, file, **options):
|
def get_command_ex(self, file, **options):
|
||||||
command = executable = "eog"
|
command = executable = "eog"
|
||||||
return command, executable
|
return command, executable
|
||||||
|
|
||||||
if which("display"):
|
if which("eog"):
|
||||||
register(DisplayViewer)
|
|
||||||
elif which("eog"):
|
|
||||||
register(EogViewer)
|
register(EogViewer)
|
||||||
|
|
||||||
class XVViewer(UnixViewer):
|
class XVViewer(UnixViewer):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user