Reorder/refactor for consistency

This commit is contained in:
Hugo 2017-11-22 12:13:13 +02:00 committed by GitHub
parent 3a1f532acf
commit 09f3fbe9b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -101,6 +101,7 @@ class Viewer(object):
# --------------------------------------------------------------------
if sys.platform == "win32":
class WindowsViewer(Viewer):
@ -161,14 +162,15 @@ else:
command = executable = "display"
return command, executable
if which("display"):
register(DisplayViewer)
class EogViewer(UnixViewer):
def get_command_ex(self, file, **options):
command = executable = "eog"
return command, executable
if which("display"):
register(DisplayViewer)
elif which("eog"):
if which("eog"):
register(EogViewer)
class XVViewer(UnixViewer):