From 0ef50e2d9a1d3989a16c1c66926ed3aca4b49c93 Mon Sep 17 00:00:00 2001 From: Thomas Vander Stichele Date: Wed, 28 Sep 2005 07:40:15 +0000 Subject: [PATCH] gst/__init__.py: require pygtk 2.0 when importing gst it only works with 2.0, and it sets up the path correctly when ... Original commit message from CVS: * gst/__init__.py: require pygtk 2.0 when importing gst it only works with 2.0, and it sets up the path correctly when running against a pygtk compiled into a different prefix --- ChangeLog | 7 +++++++ gst/__init__.py | 2 ++ 2 files changed, 9 insertions(+) diff --git a/ChangeLog b/ChangeLog index f15aa0f0a9..caa0f98efb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2005-09-28 Thomas Vander Stichele + + * gst/__init__.py: + require pygtk 2.0 when importing gst + it only works with 2.0, and it sets up the path correctly + when running against a pygtk compiled into a different prefix + 2005-09-26 Thomas Vander Stichele * gst/gst.defs: diff --git a/gst/__init__.py b/gst/__init__.py index 37a3ab32fc..16364791ce 100644 --- a/gst/__init__.py +++ b/gst/__init__.py @@ -28,6 +28,8 @@ try: except: pass +import pygtk +pygtk.require('2.0') import gobject del gobject