diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2003-07-04 11:05:35 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2003-07-04 11:05:35 (GMT) |
commit | bbaa08374587013d07ced371c80f620003876b6c (patch) | |
tree | 2016ae4c47b71dc8c625691df246eb910751a705 /Lib | |
parent | 2e7e7df96982265022cc0888db954ef4e5301a5c (diff) | |
download | cpython-bbaa08374587013d07ced371c80f620003876b6c.zip cpython-bbaa08374587013d07ced371c80f620003876b6c.tar.gz cpython-bbaa08374587013d07ced371c80f620003876b6c.tar.bz2 |
If a --python option is used to specify the Python to use in the #!
line also use this as the executable in the bundle.
Diffstat (limited to 'Lib')
-rwxr-xr-x | Lib/plat-mac/bundlebuilder.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/plat-mac/bundlebuilder.py b/Lib/plat-mac/bundlebuilder.py index 554b0f1..9c79e30 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 |