On Sun, Sep 20, 2009 at 10:25 PM, Diez B. Roggisch <de...@nospam.web.de> wrote:
> Peng Yu schrieb:
>>
>> On Sun, Sep 20, 2009 at 8:37 PM, Daniel Fetchinson
>> <fetchin...@googlemail.com> wrote:
>>>>
>>>> I configured python-2.6.2 with my own --prefix, then 'make' and 'make
>>>> install'. I only find the following dirs and I don't find any python
>>>> modules in the directory. Do python modules come with python-2.6.2?
>>>>
>>>> $ ls
>>>> bin  include  lib  share
>>>
>>> Try 'ls lib/python*' and also 'ls lib/python*/site-packages/'
>>
>> Do I need to set PYTHONPATH to lib/python* because I changed the
>> default 'prefix'?
>
> It would have taken shorter to *try* that than it would to write this mail.
> So go, try it. Hint:
>
>
>>>> import foo
>>>> foo.__file__

The newly compiled python does pick up the newly installed module. How
does it do so? Is the module path hard coded in the python executable
when the executable is compiled?

Regards,
Peng
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to