[Trac] Re: PythonHandler for Trac in non-defaul folder

Emmanuel Blot manu.blot at gmail.com
Tue Aug 2 13:10:42 CDT 2005


I think it should work.

I use the following config section:

      <Location "/trac/project">
        SetHandler mod_python
        PythonPath "sys.path+['/local/engine/trac']"
        PythonHandler trac.web.modpython_frontend
        PythonOption TracUriRoot /trac/project
        PythonOption TracEnv "/local/db/trac/project"
      </Location>

Cheers,
Manu

On 8/2/05, Daniel Santa Cruz <byteshack at gmail.com> wrote:
> Might be answering my own question here, but I'm not sure this works yet.
> 
> > <Location /TracTest>
> >    SetHandler mod_python
> >    PythonHandler ???? /home/me/Trac1 ???
> >    PythonOption ...
> >    ...
> > </Location>
> 
> Instead try:
> 
> <Location /TracTest>
>    SetHandler mod_python
>    PythonPath "['/some/where/prefix']+sys.path"
>    PythonHandler trac.web.modpython_frontend
>    PythonOption TracUriRoot "/Sandbox"
>    PythonOption TracEnv /var/trac/Sandbox
> </Location>
> 
> Would that work?  Seems to do the trick, but I'm not 100% sure yet.
> 
> Daniel
> _______________________________________________
> Trac mailing list
> Trac at lists.edgewall.com
> http://lists.edgewall.com/mailman/listinfo/trac
> 


-- 
Manu


More information about the Trac mailing list