Greg Stein
gstein at lyra.org
Sun Jun 25 13:56:31 EST 2000
On Sun, Jun 25, 2000 at 03:55:04PM -0400, Gregory Trubetskoy wrote: > On Sun, 25 Jun 2000, Dave wrote: > > I've been using the Location directive for a bit now, here is how it > > looks for me: > > > > <Location /wpy > > > SetHandler python-program > > PythonDebug On > > PythonPath "sys.path+['/devel/WEB/Webware/WebKit']" > > PythonHandler webkit_handler > > </Location> > > > > The key here is the undocumented feature of PythonPath that it > > apparently evals its argument. I've been meaning to ask about this since > > at some point this could get broken in development and I'd be up a > > creek. > > I don't think this is going away - there is no simpler way to specify the > pythonpath than in python syntax which implies evaling. Huh? How about specifying the path in standard DIR:DIR:DIR notation, and using: sys.path = sys.path + string.split(directive_arg, ':') No need to eval at all. Cheers, -g -- Greg Stein, http://www.lyra.org/
|