[Python-bugs-list] [ python-Bugs-555779 ] import user doesn't work with CGIs
noreply@sourceforge.net
noreply@sourceforge.net
Tue, 14 May 2002 00:30:15 -0700
Bugs item #555779, was opened at 2002-05-14 07: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: None
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.
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=555779&group_id=5470