diff options
author | Edward Hervey <bilboed@bilboed.com> | 2007-03-02 11:03:46 +0000 |
---|---|---|
committer | Edward Hervey <bilboed@bilboed.com> | 2007-03-02 11:03:46 +0000 |
commit | e8b581108dd40c2eeb2e470f1bb5173ff8e0872b (patch) | |
tree | 7d1125ae0f7242cb7c31e9a92632949e4f5a2e7d | |
parent | 34f77d7db3735be7c9bc3f2e9bfc020c96af34df (diff) |
gst/__init__.py: Import libxml2 (if available) at import time with GLOBAL and LAZY flags.
Original commit message from CVS:
* gst/__init__.py:
Import libxml2 (if available) at import time with GLOBAL and LAZY flags.
Fixes #398567
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | gst/__init__.py | 6 |
2 files changed, 11 insertions, 1 deletions
@@ -1,3 +1,9 @@ +2007-03-02 Edward Hervey <edward@fluendo.com> + + * gst/__init__.py: + Import libxml2 (if available) at import time with GLOBAL and LAZY flags. + Fixes #398567 + 2007-03-01 Edward Hervey <edward@fluendo.com> * gst/__init__.py: diff --git a/gst/__init__.py b/gst/__init__.py index a87da9c..2c98380 100644 --- a/gst/__init__.py +++ b/gst/__init__.py @@ -112,7 +112,11 @@ if RTLD_GLOBAL != -1 and RTLD_LAZY != -1: sys.setdlopenflags(RTLD_LAZY | RTLD_GLOBAL) from _gst import * import interfaces - + try: + import libxml2 + except: + pass + version = get_gst_version sys.setdlopenflags(dlsave) |