Re: Selecting a different config.py
Chris G <[email protected]> Wed, 26 Dec 2007 11:25:08 +0000
| Newsgroups | gmane.comp.web.pyblosxom.user |
|---|---|
| Message-ID | <20071226112508.GA6583@th-shell-1> |
On Tue, Dec 25, 2007 at 04:54:35PM -0500, Sergey A. Lipnevich wrote:
> 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,
>
That has confused me even more! :-)
OK, my "CGI server" is presumably apache but I can't really see how
that helps me. I could set things up so that apache will find a CGI
file in a different place but that's not really what I want.
What I want to do is to be able to specify a different config.py file
somehow. Ideally I'd like to be able simply to use a different URL so
that my exisitng:-
http://home.isbd.net/cgi-bin/pyblosxom.cgi/
takes me to my existing pyblosxom installation and one like:-
http://home.isbd.net/cgi-bin/pyanother.cgi
uses a different config.py and thus I can have an entirely independent
set of pyblosxom files.
Is this possible?
--
Chris Green
-------------------------------------------------------------------------
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/