Message47008
At the moment, on OS X /usr/bin/pythonw2.x is a simple sh script
that exec's a python interpreter within a valid OS X application
bundle. The problem is that this prevents python scripts from
using pythonw in the #! line. Darwin won't allow a script to act as
an interpreter in a #! line.
This patch replaces the shell script with a simple C program that
does the same thing -- it just calls execv on the python interpreter
within the OS X app bundle. Since it is a compiled executable it is
allowed to act as an interpreter in #! lines.
Your patch guidelines said you preferred multiple patches to be
concatenated in a single file. My patch consists of a Makefile
change and a new file, dist/src/Mac/OSX/pythonw.c. I've included
both in the text file attached to this report. It would probably be
prudent for somebody to review the Makefile change, since it's
always tricky to find the right way to put a new file in someone
else's build process.
Thank you,
-Nathan |
|
| Date |
User |
Action |
Args |
| 2007-08-23 15:40:03 | admin | link | issue1038911 messages |
| 2007-08-23 15:40:03 | admin | create | |
|