4532: Patch for Windows (by josip)

svn: r16386
This commit is contained in:
Jérôme Rapinat
2011-01-15 09:43:34 +00:00
parent 51f239f53b
commit 5c8a3f7488
5 changed files with 37 additions and 4 deletions

View File

@@ -80,8 +80,13 @@ APP_VCARD = ["text/x-vcard", "text/x-vcalendar"]
# system paths
#
#-------------------------------------------------------------------------
PREFIXDIR = "@prefix@"
SYSCONFDIR = "@sysconfdir@"
if sys.platform == "win32":
if sys.prefix == os.path.dirname(os.getcwd()):
PREFIXDIR = sys.prefix
SYSCONFDIR = os.path.join(sys.prefix, "etc")
else:
PREFIXDIR = "@prefix@"
SYSCONFDIR = "@sysconfdir@"
#-------------------------------------------------------------------------
#