Newbie want Python CGI on Mac OS X10.2

sismex01 at hebmex.com sismex01 at hebmex.com
Thu Oct 31 12:24:27 EST 2002


> From: Mel Bohince [mailto:melbohince at attbi.com]
> 
> I'm suspicious of the first line:
> #!/usr/lib/python  I've tried #!/usr/lib/ python, #!/usr/bin/python,
> #!/usr/bin/env python
> 
> what exactly is this to be?
> 

Ehh, good reason to be suspicious about it!
It's a specially-formatted comment, and it indicates
the pathname of the interpreter. You have to look
exactly where the "python" executable you need is,
and place that full pathname after the "#!".

-gustavo




More information about the Python-list mailing list