Fix of issue 6060, problem with lower case drive letters in Windows.

svn: r20464
This commit is contained in:
Peter Landgren 2012-09-29 16:32:39 +00:00
parent 37976a7e79
commit f63adca571

View File

@ -82,9 +82,9 @@ APP_VCARD = ["text/x-vcard", "text/x-vcalendar"]
#
#-------------------------------------------------------------------------
if sys.platform == "win32":
if sys.prefix == os.path.dirname(os.getcwd()):
PREFIXDIR = sys.prefix
SYSCONFDIR = os.path.join(sys.prefix, "etc")
if sys.prefix.upper() == os.path.dirname(os.getcwd()).upper():
PREFIXDIR = sys.prefix.capitalize()
SYSCONFDIR = os.path.join(PREFIXDIR, "etc")
elif sys.platform == "darwin" and sys.prefix != sys.exec_prefix:
PREFIXDIR = sys.prefix
SYSCONFDIR = os.path.join(sys.prefix, "etc")