use proper dl module flags

Original commit message from CVS:
use proper dl module flags
This commit is contained in:
David I. Lehn 2002-04-15 23:48:22 +00:00
parent 5553eff125
commit 0b4078eae0
2 changed files with 4 additions and 2 deletions

View file

@ -22,6 +22,7 @@
import sys
import os
import dl
"libtool lib location"
devloc = os.path.join(__path__[0],'.libs')
@ -29,7 +30,7 @@ devloc = os.path.join(__path__[0],'.libs')
if os.path.exists(devloc):
sys.path.append(devloc)
sys.setdlopenflags(1)
sys.setdlopenflags(dl.RTLD_LAZY | dl.RTLD_GLOBAL)
del devloc, sys, os
from _gstreamer import *

View file

@ -22,6 +22,7 @@
import sys
import os
import dl
"libtool lib location"
devloc = os.path.join(__path__[0],'.libs')
@ -29,7 +30,7 @@ devloc = os.path.join(__path__[0],'.libs')
if os.path.exists(devloc):
sys.path.append(devloc)
sys.setdlopenflags(1)
sys.setdlopenflags(dl.RTLD_LAZY | dl.RTLD_GLOBAL)
del devloc, sys, os
from _gstreamer import *