Index: ctypesgen/ctypesgencore/libraryloader.py =================================================================== --- ctypesgen/ctypesgencore/libraryloader.py (revision 47) +++ ctypesgen/ctypesgencore/libraryloader.py (working copy) @@ -145,7 +145,7 @@ # # We assume the DT_RPATH and DT_RUNPATH binary sections are omitted. - directories = self.other_paths.copy() + directories = self.other_dirs[:] directories.append(".") directories.extend(_environ_path('LD_LIBRARY_PATH')) @@ -220,7 +220,7 @@ loaderclass = { "darwin": DarwinLibraryLoader, "cygwin": WindowsLibraryLoader, - "linux": LinuxLibraryLoader, + "linux2": LinuxLibraryLoader, "win32": WindowsLibraryLoader } loader = loaderclass[sys.platform]() @@ -230,4 +230,4 @@ load_library = loader.load_library -del loaderclass \ No newline at end of file +del loaderclass