Selecting a different config.py
Chris G <[email protected]> Tue, 25 Dec 2007 20:44:06 +0000
| Newsgroups | gmane.comp.web.pyblosxom.user |
|---|---|
| Message-ID | <[email protected]> |
Happy Christmas everyone!
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?
--
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/