gst/__init__.py: only pygtk.require if pygtk wasn't imported yet
Original commit message from CVS: * gst/__init__.py: only pygtk.require if pygtk wasn't imported yet
This commit is contained in:
parent
2c73056985
commit
acdb03ae74
@ -1,3 +1,8 @@
|
|||||||
|
2005-10-05 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||||
|
|
||||||
|
* gst/__init__.py:
|
||||||
|
only pygtk.require if pygtk wasn't imported yet
|
||||||
|
|
||||||
2005-10-05 Thomas Vander Stichele <thomas at apestaart dot org>
|
2005-10-05 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||||
|
|
||||||
* gst/__init__.py:
|
* gst/__init__.py:
|
||||||
|
@ -28,11 +28,16 @@ try:
|
|||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
import pygtk
|
import sys
|
||||||
pygtk.require('2.0')
|
|
||||||
|
# we always require 2.0 of pygtk; so if pygtk is not imported anywhere
|
||||||
|
# yet, we import pygtk here and .require
|
||||||
|
if not sys.modules.has_key('pygtk'):
|
||||||
|
import pygtk
|
||||||
|
pygtk.require('2.0')
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import sys, DLFCN
|
import DLFCN
|
||||||
sys.setdlopenflags(DLFCN.RTLD_LAZY | DLFCN.RTLD_GLOBAL)
|
sys.setdlopenflags(DLFCN.RTLD_LAZY | DLFCN.RTLD_GLOBAL)
|
||||||
del sys, DLFCN
|
del sys, DLFCN
|
||||||
except ImportError:
|
except ImportError:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user