how to make python load dylib on osx
        Posted  
        
            by navicore
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by navicore
        
        
        
        Published on 2010-03-21T17:42:05Z
        Indexed on 
            2010/04/06
            3:43 UTC
        
        
        Read the original article
        Hit count: 582
        
Hi,
Trying to load a shared lib out of the current '.' dir in a unit test on osx.
What works on Linux and Netbsd there is a symlink _mymodule.so --> ../.libs/libmymodule.so
but on osx, python's import mymodule won't find
_mymodule.dylib --> ../.libs/libmymodule.dylib
I've tried adding
export DYLD_LIBRARY_PATH=.:$DYLD_LIBRARY_PATH
to the script env, nogo. Any help appreciated.
-Ed
© Stack Overflow or respective owner