Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bc06fea

Browse files
committed
Pydoc also needs its #! line massaged. Fixes #733199.
1 parent a226b57 commit bc06fea

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

Mac/OSX/Dist/resources/postflight

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ if [ "$DEST" = "/" ]; then
6767
fi
6868

6969

70-
# The link in the app bundles needs updated.
70+
# The link in the app bundles and in pydoc need updating.
7171
installed_python=$DEST/Library/Frameworks/Python.framework/Versions/$PYVER/Resources/Python.app/Contents/MacOS/python
7272
for app in BuildApplet IDLE PackageManager PythonIDE; do
7373
ln -fsh $installed_python \
@@ -79,5 +79,11 @@ for app in BuildApplet IDLE PackageManager PythonIDE; do
7979
w
8080
q
8181
xyzzy
82-
82+
ed -s $DEST/Library/Frameworks/Python.framework/Versions/$PYVER/bin/pydoc << xyzzy
83+
1c
84+
#!$installed_python
85+
.
86+
w
87+
q
88+
xyzzy
8389
done

0 commit comments

Comments
 (0)