mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-22 14:06:23 +00:00
use proper dl module flags
Original commit message from CVS: use proper dl module flags
This commit is contained in:
parent
5553eff125
commit
0b4078eae0
2 changed files with 4 additions and 2 deletions
|
@ -22,6 +22,7 @@
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
|
import dl
|
||||||
|
|
||||||
"libtool lib location"
|
"libtool lib location"
|
||||||
devloc = os.path.join(__path__[0],'.libs')
|
devloc = os.path.join(__path__[0],'.libs')
|
||||||
|
@ -29,7 +30,7 @@ devloc = os.path.join(__path__[0],'.libs')
|
||||||
if os.path.exists(devloc):
|
if os.path.exists(devloc):
|
||||||
sys.path.append(devloc)
|
sys.path.append(devloc)
|
||||||
|
|
||||||
sys.setdlopenflags(1)
|
sys.setdlopenflags(dl.RTLD_LAZY | dl.RTLD_GLOBAL)
|
||||||
del devloc, sys, os
|
del devloc, sys, os
|
||||||
|
|
||||||
from _gstreamer import *
|
from _gstreamer import *
|
||||||
|
|
|
@ -22,6 +22,7 @@
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
|
import dl
|
||||||
|
|
||||||
"libtool lib location"
|
"libtool lib location"
|
||||||
devloc = os.path.join(__path__[0],'.libs')
|
devloc = os.path.join(__path__[0],'.libs')
|
||||||
|
@ -29,7 +30,7 @@ devloc = os.path.join(__path__[0],'.libs')
|
||||||
if os.path.exists(devloc):
|
if os.path.exists(devloc):
|
||||||
sys.path.append(devloc)
|
sys.path.append(devloc)
|
||||||
|
|
||||||
sys.setdlopenflags(1)
|
sys.setdlopenflags(dl.RTLD_LAZY | dl.RTLD_GLOBAL)
|
||||||
del devloc, sys, os
|
del devloc, sys, os
|
||||||
|
|
||||||
from _gstreamer import *
|
from _gstreamer import *
|
||||||
|
|
Loading…
Reference in a new issue