]> granicus.if.org Git - python/commitdiff
If a --python option is used to specify the Python to use in the #!
authorJack Jansen <jack.jansen@cwi.nl>
Fri, 4 Jul 2003 11:05:35 +0000 (11:05 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Fri, 4 Jul 2003 11:05:35 +0000 (11:05 +0000)
line also use this as the executable in the bundle.

Lib/plat-mac/bundlebuilder.py

index 554b0f1897c1d65635d100768ccb98fed0047e98..9c79e30e09e8963950df4922ac9e7238f00d42a0 100755 (executable)
@@ -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