[Pythonmac-SIG] Re: Beginner's questions
Chris Barker
Chris.Barker at noaa.gov
Mon Dec 29 12:38:50 EST 2003
Jack Jansen wrote:
>> I do not know of any way of doing the
>> right thing from a "#!" line.
> Use
> "#!/System/Library/Frameworks/Python.framework/Versions/2.3/Resources/
> Python.app/Contents/MacOS/Python", just like the pythonw script itself
> does.
#!/usr/bin/en pythonw
Works just fine on Jaguar, python2.2
I hope it works on Panther too. That way, all I need to do is create a
symlink: pythonw on linux, and my scripts are cross platform. Hardcoding
specific paths into a #! line has always been distastful to me.
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chris.Barker at noaa.gov
More information about the Pythonmac-SIG
mailing list