If a --python option is used to specify the Python to use in the #!

line also use this as the executable in the bundle.
This commit is contained in:
Jack Jansen 2003-07-04 11:05:35 +00:00
parent 2e7e7df969
commit bbaa083745
1 changed files with 4 additions and 1 deletions

View File

@ -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