[issue1431] pth files not loaded at startup

Brett Cannon report at bugs.python.org
Tue Nov 13 20:00:20 CET 2007


Brett Cannon added the comment:

For what you meant by recursion, that makes more sense.

But as for whether this is correct or not, read the next paragraph in
the site docs
(http://docs.python.org/dev/library/site.html#module-site).  It says "A
path configuration file is a file whose name has the form package.pth
and exists in one of the four directories mentioned above".  So the
"newly added path" is the four paths mentioned in that paragraph (e.g.,
the ones that involve sys.prefix and sys.exec_prefix.

So the docs do not suggest that any recursive check is done, nor does it
need to worry about pre-existing directories.  It just needs to check
site-packages locations and site-python.

If site.py is not checking those directories, it is a bug, otherwise I
think the current behaviour matches the documentation.

----------
assignee:  -> brett.cannon

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1431>
__________________________________


More information about the Python-bugs-list mailing list