summaryrefslogtreecommitdiffstats
path: root/Mac/Lib
diff options
context:
space:
mode:
authorJust van Rossum <just@letterror.com>2002-11-29 21:22:33 (GMT)
committerJust van Rossum <just@letterror.com>2002-11-29 21:22:33 (GMT)
commit24884f76c6b59aa9cd716174907a02d5d172c2fc (patch)
treed0f92ff4c6a35c625fc68cbba602cf2c8c2e8e70 /Mac/Lib
parent3eb166b49b2a290441f7597c413082ae45b59bb6 (diff)
downloadcpython-24884f76c6b59aa9cd716174907a02d5d172c2fc.zip
cpython-24884f76c6b59aa9cd716174907a02d5d172c2fc.tar.gz
cpython-24884f76c6b59aa9cd716174907a02d5d172c2fc.tar.bz2
Forgot to do os.path.basename() on mainprogram: a nonworking app was built if the mainprogram wan't in the current directory. Fixed.
Diffstat (limited to 'Mac/Lib')
-rwxr-xr-xMac/Lib/bundlebuilder.py13
1 files changed, 6 insertions, 7 deletions
diff --git a/Mac/Lib/bundlebuilder.py b/Mac/Lib/bundlebuilder.py
index 52d6579..a4811f1 100755
--- a/Mac/Lib/bundlebuilder.py
+++ b/Mac/Lib/bundlebuilder.py
@@ -350,16 +350,15 @@ class AppBuilder(BundleBuilder):
self.execpath = execpath
if self.mainprogram is not None:
- mainname = os.path.basename(self.mainprogram)
- self.files.append((self.mainprogram, pathjoin(resdir, mainname)))
- # Create execve wrapper
- mainprogram = self.mainprogram # XXX for locals() call
+ mainprogram = os.path.basename(self.mainprogram)
+ self.files.append((self.mainprogram, pathjoin(resdir, mainprogram)))
+ # Write bootstrap script
executable = os.path.basename(self.executable)
execdir = pathjoin(self.bundlepath, self.execdir)
- mainwrapperpath = pathjoin(execdir, self.name)
+ bootstrappath = pathjoin(execdir, self.name)
makedirs(execdir)
- open(mainwrapperpath, "w").write(BOOTSTRAP_SCRIPT % locals())
- os.chmod(mainwrapperpath, 0775)
+ open(bootstrappath, "w").write(BOOTSTRAP_SCRIPT % locals())
+ os.chmod(bootstrappath, 0775)
def postProcess(self):
self.addPythonModules()