[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.python

Re: Odd behaviour of *.pth files and Apache

D'Arcy J.M. Cain

2/23/2008 2:53:00 PM

On Thu, 21 Feb 2008 13:55:25 -0500
"D'Arcy J.M. Cain" <darcy@druid.net> wrote:
> I tried searching the archives for information on this but nothing
> seemed to be germane. I am running Python sripts as CGI under Apache
> and I have a .pth file in site-packages that includes directory that
> has another .pth in it. Sometimes it picks up the paths in the
> second .pth and sometimes it does not. It always seems to work if I am
> working in a location not in the ServerRoot but if I use the main site
> it does not pick up the directories in the included .pth.

I have more information now. It seems that it recurses the .pth files
it finds in PYTHONPATH but not for directories found in the .pth files
in site-packages. Is this expected behaviour? The documentation
suggests that it should pick up both.

--
D'Arcy J.M. Cain <darcy@druid.net> | Democracy is three wolves
http://www.druid.... | and a sheep voting on
+1 416 425 1212 (DoD#0082) (eNTP) | what's for dinner.