shared library search path

Stefan Arentz stefan.arentz at
Thu Nov 3 12:31:31 CET 2005

Hi. I've wrapped a C++ class with Boost.Python and that works great. But, I
am now packaging my application so that it can be distributed. The structure
is basically this:


In I do the following:

 sys.path.append(os.path.dirname(sys.path[0]) + '/lib')

and this allows to import bar. Great.

But, the cannot be imported. The import only succeeds if I place next to in the bin directory.

I searched through the 2.4.2 documentation on but I can't find
a proper explanation on how the shared library loader works.

Does anyone understand what it going on here?


More information about the Python-list mailing list