Fix issue 5224.

This commit is contained in:
Ronald Oussoren 2009-03-04 21:07:19 +00:00
parent d5ad6da03b
commit 799868e8a7
2 changed files with 3 additions and 4 deletions

View File

@ -1031,8 +1031,7 @@ def main():
buildPythonDocs()
fn = os.path.join(WORKDIR, "_root", "Applications",
"Python %s"%(getVersion(),), "Update Shell Profile.command")
patchFile("scripts/postflight.patch-profile", fn)
os.chmod(fn, 0755)
patchScript("scripts/postflight.patch-profile", fn)
folder = os.path.join(WORKDIR, "_root", "Applications", "Python %s"%(
getVersion(),))

View File

@ -5,8 +5,8 @@ echo "of python is not early enough of the PATH of your shell."
echo "These changes will be effective only in shell windows that you open"
echo "after running this script."
PYVER=2.7
PYTHON_ROOT="/Library/Frameworks/Python.framework/Versions/Current"
PYVER="@PYVER@"
PYTHON_ROOT="/Library/Frameworks/Python.framework/Versions/@PYVER@"
if [ `id -ur` = 0 ]; then
# Run from the installer, do some trickery to fetch the information