summaryrefslogtreecommitdiffstats
path: root/Mac/OSX/Dist/resources/postflight
diff options
context:
space:
mode:
Diffstat (limited to 'Mac/OSX/Dist/resources/postflight')
-rwxr-xr-xMac/OSX/Dist/resources/postflight11
1 files changed, 10 insertions, 1 deletions
diff --git a/Mac/OSX/Dist/resources/postflight b/Mac/OSX/Dist/resources/postflight
index 4caa2b0..e7cb8f2 100755
--- a/Mac/OSX/Dist/resources/postflight
+++ b/Mac/OSX/Dist/resources/postflight
@@ -68,7 +68,16 @@ fi
# The link in the app bundles needs updated.
+installed_python=$DEST/Library/Frameworks/Python.framework/Versions/$PYVER/Resources/Python.app/Contents/MacOS/python
for app in BuildApplet IDLE PackageManager PythonIDE; do
- ln -fsh $DEST/Library/Frameworks/Python.framework/Versions/$PYVER/Resources/Python.app/Contents/MacOS/python \
+ ln -fsh $installed_python \
$DEST/Applications/MacPython-$PYVER/$app.app/Contents/MacOS
+ ed -s $DEST/Applications/MacPython-$PYVER/$app.app/Contents/MacOS/$app << xyzzy
+1c
+#!$installed_python
+.
+w
+q
+xyzzy
+
done