a module.pth question

oyster lepto.python at gmail.com
Mon Jul 14 07:26:49 EDT 2008


My py24 is installed in h:\python24
I installed pyglet(http://pyglet.org/) in
H:\pure_pylib\Multimedia\pyglet-1.0\, if I do
[code]
>>> import sys
>>> sys.path.append(r'H:\pure_pylib\Multimedia\pyglet-1.0')
>>> import pyglet
[/code]
it is ok.

but if I created h:\pure_pylib\pyglet.pth file, which containts
[code]
Multimedia\pyglet-1.0
[/code]

then
[code]
>>> import sys
>>> sys.path.append(r'h:\pure_pylib')
>>> import pyglet
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
ImportError: No module named pyglet
>>>
[/code]

what is wrong with it? and How to fix it? thanks in advance



More information about the Python-list mailing list