diff --git a/src/const.py.in b/src/const.py.in index a29bc7197..d7ce188bf 100644 --- a/src/const.py.in +++ b/src/const.py.in @@ -83,6 +83,17 @@ APP_VCARD = ["text/x-vcard", "text/x-vcalendar"] PREFIXDIR = "@prefix@" SYSCONFDIR = "@sysconfdir@" +#------------------------------------------------------------------------- +# +# Platforms +# Never test on LINUX, handle Linux in the else statement as default +# +#------------------------------------------------------------------------- +LINUX = ["Linux", "linux", "linux2"] +MACOS = ["Darwin", "darwin"] +WINDOWS = ["Windows", "win32"] + + #------------------------------------------------------------------------- # # Determine the home directory. According to Wikipedia, most UNIX like @@ -160,7 +171,7 @@ PAPERSIZE = os.path.join(DATA_DIR, "papersize.xml") USE_TIPS = False -if os.sys.platform == "win32": +if os.sys.platform in WINDOWS: USE_THUMBNAILER = False else: USE_THUMBNAILER = True @@ -206,16 +217,6 @@ XMLFILE = "data.gramps" NO_SURNAME = "(%s)" % _("none") NO_GIVEN = "(%s)" % _("none") -#------------------------------------------------------------------------- -# -# Platforms -# Never test on LINUX, handle Linux in the else statement as default -# -#------------------------------------------------------------------------- -LINUX = ["Linux", "linux"] -MACOS = ["Darwin", "darwin"] -WINDOWS = ["Windows", "win32"] - #------------------------------------------------------------------------- # # Options Constants