From | Stefan Boddie |
Date | Fri, 18 Apr 2003 11:26:56 +1200 |
Subject | [greenstone-devel] Re: Web Library cgi program |
In-Reply-To | (005001c2ffab$736785d0$6701a8c0-dellPC) |
Kevin Ollivier wrote:
> Hi all, > > I'm in the process of developing a web-browser > application for EClass (our e-learning app) that has > server functionality embedded and would pop up when the > end user inserts an EClass CD. I'm using Python/wxPython > to put this together, and have a CGI-capable web server > (the one in the Python libraries) as the backend. All > seems to be running fine, however, I hit a snag when > trying to integrate Greenstone into this. Basically, the > problem is that Greenstone's library CGI program requires > gsdlhome to be set to an absolute path in gsdlsite.cfg, > but I won't know the absolute path until the server has > been started. > > Is there any way I can have the library accept a relative > path to gsdlhome and/or determine it's absolute path > dynamically? If not, where in the library CGI code are > these values read in? =) > gsdlhome is read in twice. The first is very early in the main() function in
The second time gsdlsite.cfg is read is in the cgiwrapper()
Both times gsdlsite.cfg is read by one of the two
Hope this helps.
|