From e8b581108dd40c2eeb2e470f1bb5173ff8e0872b Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Fri, 2 Mar 2007 11:03:46 +0000 Subject: [PATCH] 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 --- ChangeLog | 6 ++++++ gst/__init__.py | 6 +++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index e9e96b6a12..d86a876977 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-03-02 Edward Hervey + + * gst/__init__.py: + Import libxml2 (if available) at import time with GLOBAL and LAZY flags. + Fixes #398567 + 2007-03-01 Edward Hervey * gst/__init__.py: diff --git a/gst/__init__.py b/gst/__init__.py index a87da9cef6..2c983805ff 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)