From 03203aa89e00a8e327b2e3ab2afbe5267d682b56 Mon Sep 17 00:00:00 2001 From: Thomas Vander Stichele Date: Fri, 2 Sep 2005 10:56:19 +0000 Subject: [PATCH] fix distcheck Original commit message from CVS: fix distcheck --- Makefile.am | 2 +- gst/__init__.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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