[pygi] Import pygtk properly to avoid failure on some setups



commit e6f730d6e1431e36bd5f6b503a1038617f8d1e7d
Author: Simon van der Linden <svdlinden src gnome org>
Date:   Sat Nov 14 21:42:43 2009 +0100

    Import pygtk properly to avoid failure on some setups

 tests/test_gi.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/tests/test_gi.py b/tests/test_gi.py
index 7c29615..3c72d28 100644
--- a/tests/test_gi.py
+++ b/tests/test_gi.py
@@ -1,6 +1,9 @@
 # -*- Mode: Python; py-indent-offset: 4 -*-
 # vim: tabstop=4 shiftwidth=4 expandtab
 
+import pygtk
+pygtk.require("2.0")
+
 import unittest
 import gobject
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]