From: Jack Jansen Date: Fri, 4 Jul 2003 11:05:35 +0000 (+0000) Subject: If a --python option is used to specify the Python to use in the #! X-Git-Tag: v2.3c1~175 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bbaa08374587013d07ced371c80f620003876b6c;p=python If a --python option is used to specify the Python to use in the #! line also use this as the executable in the bundle. --- diff --git a/Lib/plat-mac/bundlebuilder.py b/Lib/plat-mac/bundlebuilder.py index 554b0f1897..9c79e30e09 100755 --- a/Lib/plat-mac/bundlebuilder.py +++ b/Lib/plat-mac/bundlebuilder.py @@ -405,7 +405,10 @@ class AppBuilder(BundleBuilder): if self.executable is None: if not self.standalone and not isFramework(): self.symlink_exec = 1 - self.executable = sys.executable + if self.python: + self.executable = self.python + else: + self.executable = sys.executable if self.nibname: self.plist.NSMainNibFile = self.nibname