Re: Selecting a different config.py
"Sergey A. Lipnevich" <[email protected]> Tue, 25 Dec 2007 16:54:35 -0500
| Newsgroups | gmane.comp.web.pyblosxom.user |
|---|---|
| Message-ID | <[email protected]> |
Chris G wrote:
> In the pyblosxom.cgi script there is:-
>
> # this allows for a config.py override
> script = os.environ.get('SCRIPT_FILENAME', None)
> if script is not None:
> script = script[0:script.rfind("/")]
> sys.path.insert(0, script)
>
> Is this saying I can specify a different config.py (or a different
> name for it) by setting SCRIPT_FILENAME? If so, where do I set the
> SCRIPT_FILENAME variable so that it gets picked up when the CGI is
> run?
It's set by your CGI server and is usually a path to actual script file
that the server executed to process the request.
HTH,
Sergey.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/