diff options
author | Simon van der Linden <svdlinden@src.gnome.org> | 2009-12-11 22:24:30 +0100 |
---|---|---|
committer | Simon van der Linden <svdlinden@src.gnome.org> | 2010-01-03 17:35:38 +0100 |
commit | 8ddcbca0e98e0b0c082170a2b2b6cfcbd7864b40 (patch) | |
tree | f3227029960c6cba8a1755f745b058bdfef3a82d | |
parent | 828d0f042b59ea0319f33a23803c179af34ef2f1 (diff) | |
download | pygi-8ddcbca0e98e0b0c082170a2b2b6cfcbd7864b40.tar.gz pygi-8ddcbca0e98e0b0c082170a2b2b6cfcbd7864b40.tar.xz pygi-8ddcbca0e98e0b0c082170a2b2b6cfcbd7864b40.zip |
sys.path must be modified after pygtk is imported
Otherwise, sys.path is overridden by pygtk and gi.repository is loaded from the
system's default site-package directory.
-rw-r--r-- | tests/runtests.py | 1 | ||||
-rw-r--r-- | tests/test_gi.py | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/tests/runtests.py b/tests/runtests.py index 7ba5c42..ba6942c 100644 --- a/tests/runtests.py +++ b/tests/runtests.py @@ -4,7 +4,6 @@ import sys import unittest import glob -sys.path.insert(0, "../") loader = unittest.TestLoader() diff --git a/tests/test_gi.py b/tests/test_gi.py index d0bc36e..9344edd 100644 --- a/tests/test_gi.py +++ b/tests/test_gi.py @@ -9,6 +9,9 @@ import gobject from datetime import datetime +import sys +sys.path.insert(0, "../") + from gi.repository import TestGI |