[Insight-developers] dl.RTLD_NOW|dl.RTLD_GLOBAL mess

Mathieu Malaterre mathieu.malaterre at gmail.com
Wed Apr 16 06:27:40 EDT 2008


Hi there,

  I was having some issue loading the 'dl' module on debian/etch
AMD64. Apparently it is not shipped anymore. Since I only need two
values (dl.RTLD_NOW and dl.RTLD_GLOBAL), I came up with an alternate
solution as explained on:

http://docs.python.org/lib/module-sys.html

  Simply do:


  try:
    import dl
  except ImportError:
    # try the DLFCN instead ?
    try:
      import DLFCN as dl

As far as I understand DLFCN can be found on more system than dl.
Could someone please confirm on let say Darwin system ?

Thanks,

-- 
Mathieu


More information about the Insight-developers mailing list