Make use of new module constfunc.
svn: r14287
This commit is contained in:
parent
9d20446bc5
commit
116c8f39de
@ -83,6 +83,17 @@ APP_VCARD = ["text/x-vcard", "text/x-vcalendar"]
|
|||||||
PREFIXDIR = "@prefix@"
|
PREFIXDIR = "@prefix@"
|
||||||
SYSCONFDIR = "@sysconfdir@"
|
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
|
# 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
|
USE_TIPS = False
|
||||||
|
|
||||||
if os.sys.platform == "win32":
|
if os.sys.platform in WINDOWS:
|
||||||
USE_THUMBNAILER = False
|
USE_THUMBNAILER = False
|
||||||
else:
|
else:
|
||||||
USE_THUMBNAILER = True
|
USE_THUMBNAILER = True
|
||||||
@ -206,16 +217,6 @@ XMLFILE = "data.gramps"
|
|||||||
NO_SURNAME = "(%s)" % _("none")
|
NO_SURNAME = "(%s)" % _("none")
|
||||||
NO_GIVEN = "(%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
|
# Options Constants
|
||||||
|
Loading…
x
Reference in New Issue
Block a user