[Pythonmac-SIG] Mac OS 10.3.5 and tkinter. (original) (raw)

Jack Jansen Jack.Jansen at cwi.nl
Tue Nov 30 21:46:53 CET 2004


On 26-nov-04, at 23:16, Robert Kern wrote:

/usr/bin/pythonw is a shell script, so it can't be directly called by the #! (it will try to interpret hello.py as a shell script, too, not a Python script; thus the syntax errors).

Use #!/usr/bin/env /usr/bin/pythonw

Ah, that's a much nicer workaround than the one I always suggested (using the path to the interpreter deep in the framework). I've taken the liberty to add it to the FAQ.

Thanks,

Jack Jansen, <Jack.Jansen at cwi.nl>, http://www.cwi.nl/~jack If I can't dance I don't want to be part of your revolution -- Emma Goldman



More information about the Pythonmac-SIG mailing list