diff --git a/Makefile.am b/Makefile.am index 1684ae6687..799d4c9823 100644 --- a/Makefile.am +++ b/Makefile.am @@ -11,7 +11,7 @@ EXTRA_DIST = \ include $(top_srcdir)/common/release.mak -pygst.py: pygst.py.in Makefile +pygst.py: $(top_srcdir)/pygst.py.in Makefile if test -f $@; then chmod +w $@; fi sed -e "s|@PYGSTDIR\@|$(shell pwd)|g" \ -e "s|@GST_MAJORMINOR\@|$(GST_MAJORMINOR)|g" \ diff --git a/gst/__init__.py b/gst/__init__.py index 1dade53523..37a3ab32fc 100644 --- a/gst/__init__.py +++ b/gst/__init__.py @@ -75,12 +75,13 @@ class Fraction(Value): return '' % (self.num, self.denom) from _gst import * +import interfaces + # this restores previously installed importhooks, so we don't interfere # with other people's module importers # it also clears out the module completely as if it were never loaded, # so that if anyone else imports ltihooks the hooks get installed if __ltihooks_used__: - import gst.interfaces as interfaces ltihooks.uninstall() __ltihooks_used__ = False del ltihooks