[C++-sig] Extending Python with not-basic-c++

David Abrahams dave at boost-consulting.com
Thu Dec 7 16:38:05 CET 2006


"Nat Goodspeed" <ngoodspeed at solidworks.com> writes:

>> -----Original Message-----
>> From: c++-sig-bounces at python.org [mailto:c++-sig-bounces at python.org]
> On
>> Behalf Of David Sveningsson
>> Sent: Sunday, December 03, 2006 7:50 AM
>> To: Development of Python/C++ integration
>> Subject: Re: [C++-sig] Extending Python with not-basic-c++
>> 
>> My python module tries to
>> load my shared library but it can't find it unless it is in a
> directory
>> like /usr/lib. I think
>> LD_LIBRARY_PATH could be set but I don't want to set that each time
> (or
>> use a script either). Is there some way to fix this?
>
> [Nat] Your Python module is trying to load your extension using Python's
> import statement?
>
> For that, you need to set Python's sys.path rather than LD_LIBRARY_PATH.

You can do that with PYTHONPATH in the environment.

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com




More information about the Cplusplus-sig mailing list