sys.path and htaccess change?
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Apache Server configuration support > Apache Mod-Python > sys.path and htaccess change?




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    sys.path and htaccess change?  
Daniel J. Popowich


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
05-17-07 06: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/






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 05:27 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register