diff options
author | Just van Rossum <just@letterror.com> | 2003-03-21 11:32:37 (GMT) |
---|---|---|
committer | Just van Rossum <just@letterror.com> | 2003-03-21 11:32:37 (GMT) |
commit | 82ad32ec394ef9e20a5073e0dad13436972b10fa (patch) | |
tree | d55dda2ec385915d1f47cebb83b503aa6268ab52 | |
parent | 15624d850b65a0be8e944e9f17849799e3e7ede5 (diff) | |
download | cpython-82ad32ec394ef9e20a5073e0dad13436972b10fa.zip cpython-82ad32ec394ef9e20a5073e0dad13436972b10fa.tar.gz cpython-82ad32ec394ef9e20a5073e0dad13436972b10fa.tar.bz2 |
only set $PYTHONHOME when building a standalone app.
-rwxr-xr-x | Lib/plat-mac/bundlebuilder.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/plat-mac/bundlebuilder.py b/Lib/plat-mac/bundlebuilder.py index 2a32499..86f5e49 100755 --- a/Lib/plat-mac/bundlebuilder.py +++ b/Lib/plat-mac/bundlebuilder.py @@ -280,7 +280,8 @@ mainprogram = os.path.join(resdir, "%(mainprogram)s") sys.argv.insert(1, mainprogram) os.environ["PYTHONPATH"] = resdir -os.environ["PYTHONHOME"] = resdir +if %(standalone)s: + os.environ["PYTHONHOME"] = resdir os.environ["PYTHONEXECUTABLE"] = executable os.environ["DYLD_LIBRARY_PATH"] = libdir os.execve(executable, sys.argv, os.environ) @@ -445,6 +446,7 @@ class AppBuilder(BundleBuilder): hashbang = sys.executable while os.path.islink(hashbang): hashbang = os.readlink(hashbang) + standalone = self.standalone open(bootstrappath, "w").write(BOOTSTRAP_SCRIPT % locals()) os.chmod(bootstrappath, 0775) |