diff options
author | Edward Hervey <bilboed@bilboed.com> | 2009-04-11 16:08:51 +0200 |
---|---|---|
committer | Edward Hervey <bilboed@bilboed.com> | 2009-04-11 16:24:37 +0200 |
commit | 9a8db128d0a58b2c999d5b31a093a0648472c338 (patch) | |
tree | f5c095de4ca00e09044d1d9e11004b0f359233c9 | |
parent | 1cd54e6d4565308d6a8eb3dd2bb1f214f8f38aca (diff) |
__init__: Postpone registry update during initialization. Fixes #576145
-rw-r--r-- | gst/__init__.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gst/__init__.py b/gst/__init__.py index c62ef69..d843d43 100644 --- a/gst/__init__.py +++ b/gst/__init__.py @@ -189,6 +189,12 @@ try: import libxml2 except: pass + +# disable registry update during initialization +import os +doupdate = os.getenv("GST_REGISTRY_UPDATE") != "no" +os.environ["GST_REGISTRY_UPDATE"] = "no" + from _gst import * import interfaces @@ -226,3 +232,8 @@ if gstlibtoolimporter is not None: gstlibtoolimporter.uninstall() import sys del sys.modules["gstlibtoolimporter"] + +if doupdate: + # update the registry now that we've loaded all symbols + os.unsetenv("GST_REGISTRY_UPDATE") + update_registry() |