escribi�:
My py24 is installed in h:\python24..pth files are searched only when Python starts (specifically: when the
I installed pyglet(http://pyglet.org/) in
H:\pure_pylib\Multimedia\pyglet-1.0\, if I do
it is ok.Expand|Select|Wrap|Line Numbers
- >>>import sys
- sys.path.append(r'H:\pure_pylib\Multimedia\pyglet-1.0')
- import pyglet
but if I created h:\pure_pylib\pyglet.pth file, which containts
Expand|Select|Wrap|Line Numbers
- Multimedia\pyglet-1.0
then
[code]Traceback (most recent call last):>>>import sys
sys.path.append(r'h:\pure_pylib')
import pyglet
File "<stdin>", line 1, in ?
ImportError: No module named pyglet
site.py script is executed). If you later add a directory containing a
..pth file, it is *not* processed.
Put your .pth files inside a directory *already* in the search path - see
http://docs.python.org/lib/module-site.html
--
Gabriel Genellina