Re: a module.pth question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Gabriel Genellina

    Re: a module.pth question

    En Mon, 14 Jul 2008 08:26:49 -0300, oyster <lepto.python@g mail.com>
    escribi�:
    Code:
    [QUOTE][QUOTE]
    >>>import sys
    >>>sys.path.append(r'H:\pure_pylib\Multimedia\pyglet-1.0')
    >>>import pyglet
    My py24 is installed in h:\python24 I installed pyglet(http://pyglet.org/) in H:\pure_pylib\M ultimedia\pygle t-1.0\, if I do
    [/QUOTE]
    it is ok.
    >
    but if I created h:\pure_pylib\p yglet.pth file, which containts
    Code:
    Multimedia\pyglet-1.0
    >
    then
    [code]
    >>>import sys
    >>>sys.path.app end(r'h:\pure_p ylib')
    >>>import pyglet
    Traceback (most recent call last):
    File "<stdin>", line 1, in ?
    ImportError: No module named pyglet[/QUOTE]

    ..pth files are searched only when Python starts (specifically: when the
    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

Working...