[gobject-introspection] warningtester: Hack in DATADIR
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection] warningtester: Hack in DATADIR
- Date: Wed, 27 Jul 2011 14:38:16 +0000 (UTC)
commit f80747a7a387a1bc8144652add4bb14fad8680fb
Author: Colin Walters <walters verbum org>
Date: Wed Jul 27 10:30:45 2011 -0400
warningtester: Hack in DATADIR
tests/warn/warningtester.py | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/tests/warn/warningtester.py b/tests/warn/warningtester.py
index bd1a4ad..3ad4b8a 100644
--- a/tests/warn/warningtester.py
+++ b/tests/warn/warningtester.py
@@ -3,11 +3,15 @@ import os
import os.path
import sys
from StringIO import StringIO
+import __builtin__
path=os.getenv('UNINSTALLED_INTROSPECTION_SRCDIR', None)
assert path is not None
sys.path.insert(0, path)
+# Not correct, but enough to get the tests going uninstalled
+__builtin__.__dict__['DATADIR'] = path
+
from giscanner.annotationparser import AnnotationParser
from giscanner.ast import Include, Namespace
from giscanner.introspectablepass import IntrospectablePass
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]