Provide for PREFIX to be set to the bundle when the platform is darwin. Backport of r17347

svn: r17348
This commit is contained in:
John Ralls
2011-04-29 21:57:49 +00:00
parent 6acd0f0325
commit 95850b276d
2 changed files with 5 additions and 1 deletions

View File

@@ -84,6 +84,9 @@ if sys.platform == "win32":
if sys.prefix == os.path.dirname(os.getcwd()):
PREFIXDIR = sys.prefix
SYSCONFDIR = os.path.join(sys.prefix, "etc")
elif sys.platform == "darwin" and sys.prefix != sys.exec_prefix:
PREFIXDIR = sys.prefix
SYSCONFDIR = os.path.join(sys.prefix, "etc")
else:
PREFIXDIR = "@prefix@"
SYSCONFDIR = "@sysconfdir@"