On Tue, Jan 10, 2017 at 3:52 PM, Tom Kacvinsky <tom.kacvinsky@suse.com> wrote:
I am not a mod_python user, but it seemed reasonable to me to see if there is a way of modifying the search path via a mod_python directive. There is, and this page should get you started:
I tried adding: PythonPath "['/usr/lib/python2.7/site-packages', '/usr/lib64/python2.7/site-packages']" So the Apache config is: <Location /systems> SetHandler mod_python PythonInterpreter main_interpreter PythonPath "['/usr/lib/python2.7/site-packages', '/usr/lib64/python2.7/site-packages']" PythonHandler trac.web.modpython_frontend PythonOption TracEnv /vol1/trac/systems PythonOption TracUriRoot /systems AuthType Basic AuthName "Systems" AuthUserFile /vol1/trac/access/systems/.htpasswd Require valid-user </Location> It still only looked in /usr/lib64/python2.7/site-packages. The directive seems to be accepted as it shows up for this Location in server-info. But I don't see mod_python using it. The configuration had been working on a 32-bit install where all is in /usr/lib. I'm updating the server to 64-bit, and this issue has arisen. -- Roger Oberholtzer -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org