[Python-bugs-list] [ python-Bugs-555779 ] import user doesn't work with CGIs

noreply@sourceforge.net noreply@sourceforge.net
Wed, 05 Jun 2002 11:36:24 -0700


Bugs item #555779, was opened at 2002-05-14 03:30
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=555779&group_id=5470

Category: Python Library
Group: Platform-specific
Status: Open
>Resolution: Accepted
Priority: 5
Submitted By: Stephen Hansen (ixokai_)
Assigned to: Nobody/Anonymous (nobody)
Summary: import user doesn't work with CGIs

Initial Comment:
 I'm doing some CGI scripts for a job, and I've made   
some a series of libraries i'd like them to share--   
but I don't wish them to be publically installed into   
site-packages. The user mechanism seems quite suited   
to the task of easily modifying sys.path to include a   
more "private" library directory.   
  
Unfortunately, it won't work in this secnario,  
because there is no $HOME environment variable set  
when Apache calls the script.  
  
Here are a couple small patches to make it work if  
the scripts are running SUID or with Apache's suEXEC  
feature.  

----------------------------------------------------------------------

>Comment By: Guido van Rossum (gvanrossum)
Date: 2002-06-05 14:36

Message:
Logged In: YES 
user_id=6380

Looks good to me. Anybody can check this in.

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=555779&group_id=5470