__init__: Postpone registry update during initialization. Fixes #576145

This commit is contained in:
Edward Hervey 2009-04-11 16:08:51 +02:00
parent 1cd54e6d45
commit 9a8db128d0

View file

@ -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()