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

noreply@sourceforge.net noreply@sourceforge.net
Thu, 05 Sep 2002 14:08:59 -0700


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

Category: Python Library
Group: Platform-specific
>Status: Closed
Resolution: Accepted
Priority: 5
Submitted By: Stephen Hansen (ixokai_)
>Assigned to: Neal Norwitz (nnorwitz)
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: Neal Norwitz (nnorwitz)
Date: 2002-09-05 17:08

Message:
Logged In: YES 
user_id=33168

Checked in as: user.py 1.7, posixpath.py 1.52.

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

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: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=555779&group_id=5470