Re: ctypes can't find files in /usr/local/lib?
Chris Clark <[email protected]>
| Newsgroups | gmane.comp.python.ctypes |
|---|---|
| Message-ID | <[email protected]> |
Joshua J. Kugler wrote: > Other ideas as to why ctypes can't find something that *is* in the > ldconfig cache would be welcome. > I've not spent as much time with ctypes as I'd like. Each time I've used it I've had pressures to get something working so I've not had the luxury of really sitting down and playing with it. With that background/caveat... I think there are some issues with ctypes "find" logic. If you have the full path it always works but if you are hoping that paths will be used it doesn't behave they way one would expect. For instance the Windows version of ctypes.util.find_library() only checks the PATH variable (even though Windows and ctypes loader will check the current path). I suspect with an 0.5-1 days work one could probably test/experiment and create patches for a single platform (e.g. 1 day for Linux, 1 day for Windows) to address minor annoyances like this. But this is mostly speculation on my part as I've not sat down and spent the time researching this thoroughly. Chris ------------------------------------------------------------------------------ Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev