noro wrote:
> hello all.
> 
> I do some coding in python but this is my first attampt to write
> somthing for hte web.
> 
> I need to write a cgi-bin script for a web-server, and i've got the
> access for it from our "SYSTEM". the problem is that this script uses
> some modules (pg, pyLab) that i've installed localy in my home dir.
> Python knows how to find them due to an enviorment variable inthe shell
> (please corrent me if i'm wrong).
> 
> now, i am by no means big expert about web servers, but if i got it
> right, the web server run under some user ("www-data" or such).
> so howi can i make this user (and the web) be able to run my python
> code without having to install the modules as shared. (which i dont
> think they will allow me).

import sys
sys.path.append('/home/amir/<wherever-your-modules-are>')

should do the trick.

HTH
-- 
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in '[EMAIL PROTECTED]'.split('@')])"
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to