gst/__init__.py: Use DLFCN instead of dl to help python installations without the dl module (gentoo for instance)

Original commit message from CVS:
* gst/__init__.py: Use DLFCN instead of dl to help python
installations without the dl module (gentoo for instance)
This commit is contained in:
Johan Dahlin 2004-07-15 09:48:22 +00:00
parent e779537e83
commit 4e37d3cd9a
2 changed files with 11 additions and 5 deletions

View file

@ -1,3 +1,8 @@
2004-07-15 Johan Dahlin <johan@gnome.org>
* gst/__init__.py: Use DLFCN instead of dl to help python
installations without the dl module (gentoo for instance)
2004-07-13 Johan Dahlin <johan@gnome.org>
* gst/gst.override (_wrap_gst_pad_query, _wrap_gst_element_query)

View file

@ -20,9 +20,6 @@
# Author: David I. Lehn <dlehn@users.sourceforge.net>
#
import sys
import dl
try:
import ltihooks
except:
@ -31,7 +28,11 @@ except:
import gobject
del gobject
sys.setdlopenflags(dl.RTLD_LAZY | dl.RTLD_GLOBAL)
del sys, dl
try:
import sys, DLFCN
sys.setdlopenflags(DLFCN.RTLD_LAZY | DLFCN.RTLD_GLOBAL)
del sys, DLFCN
except ImportError:
pass
from _gst import *