Python with Apache on WinNT newbie question
Victor Muslin
victor at prodigy.net
Thu Dec 28 11:07:07 EST 2000
To get Apache server to run a Python CGI script, the script needs to
have on its first line a directive telling Apache the file name of the
Python interpreter, like so:
#!d:/apps/python/python.exe
#
# The rest of my cgi script follows
# ....
The problem with this is deploying this script on different machines
that may have Python interpreter installed in different directories.
Surely others had run into the same issue. What is a typical solution?
Unfortunately, if this directive can take environmental variables I
could not figure out how to do it.
Thanks.
More information about the Python-list
mailing list