[issue1431] pth files not loaded at startup

Giambattista Bloisi report at bugs.python.org
Tue Nov 13 00:54:48 CET 2007


New submission from Giambattista Bloisi:

site.py ha two limitations that make difficult to use pth files on my
linux installation (gobolinux):
- it does not process pth files that are located in directories that are
already present in os.path at the time the main method is invoked
- it does not process directory recursively

Please find attached a patch that solves both. Basically known_paths
became a set representing the directories that have been processed.
Duplicates in os.path are avoided by looking directly into it.

----------
components: Library (Lib)
files: site.py.patch
messages: 57432
nosy: gbloisi
severity: normal
status: open
title: pth files not loaded at startup
type: behavior
versions: Python 2.5
Added file: http://bugs.python.org/file8739/site.py.patch

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1431>
__________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: site.py.patch
Type: application/octet-stream
Size: 1047 bytes
Desc: not available
Url : http://mail.python.org/pipermail/python-bugs-list/attachments/20071112/adc9ecac/attachment.obj 


More information about the Python-bugs-list mailing list