[New-bugs-announce] [issue4033] python search path - .pth recursion

jolleyjoe report at bugs.python.org
Fri Oct 3 23:15:09 CEST 2008


New submission from jolleyjoe <chanj at colorado.edu>:

I have an a.pth file in dir_a with a line that says:

dir_b

In dir_b, I have a b.pth file that lists some eggs in dir_b:

JCC-1.9-py2.5-linux-i686.egg
lucene-2.3.2-py2.5-linux-i686.egg

>From http://www.python.org/doc/2.5.2/inst/search-path.html:
"Paths can be absolute or relative, in which case they're relative to
the directory containing the .pth file. Any directories added to the
search path will be scanned in turn for .pth files. See site module
documentation for more information."

I assume that .pth files are scanned recursively... is this true?

I found an old ticket here: http://bugs.python.org/issue1431, but it
wasn't clear how it concludes (ie: do .pth files get scanned recursively
for directories to add to the search path or not).

----------
assignee: georg.brandl
components: Documentation
messages: 74274
nosy: georg.brandl, jolleyjoe
severity: normal
status: open
title: python search path - .pth recursion
type: behavior
versions: Python 2.5

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4033>
_______________________________________


More information about the New-bugs-announce mailing list