Apache Mod-Python - sys.path and htaccess change?

This is Interesting: Free IT Magazines  
Home > Archive > Apache Mod-Python > May 2007 > sys.path and htaccess change?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author sys.path and htaccess change?
Daniel J. Popowich

2007-05-17, 1:13 pm


In mod_python 3.2.x, if I set a directory to use mod_python with a
..htaccess file, I will find that directory in sys.path. That is, if:

/var/www/somedir/.htaccess

contains:

SetHandler python-program

then sys.path will have "/var/www/somedir" as element zero.

With 3.3.x this does not happen.

The problem? I have a handler with co-located Python modules that get
imported (the handler does "import somemod" and somemomd is in the
same directory as the .htaccess file). This works fine with 3.2.x,
but when I upgraded to 3.3.1 I get import errors.

I searched the changelogs in the documentation, but I see no mention
of this change.

Thanks,

Daniel Popowich
---------------
http://www.astro.umass.edu/~dpopowi...hon/mpservlets/

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com