[jhbuild] update tests start script with latest global locations changes



commit 820b13dd738f24e384244f88d5e63e8561ee60b4
Author: Frédéric Péters <fpeters 0d be>
Date:   Sat May 16 12:59:35 2009 +0200

    update tests start script with latest global locations changes
---
 tests/tests.py |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/tests/tests.py b/tests/tests.py
index 0c0c516..ef77638 100644
--- a/tests/tests.py
+++ b/tests/tests.py
@@ -31,7 +31,11 @@ import __builtin__
 __builtin__.__dict__['_'] = lambda x: x
 __builtin__.__dict__['N_'] = lambda x: x
 
-sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..'))
+__builtin__.__dict__['PKGDATADIR'] = None
+__builtin__.__dict__['DATADIR'] = None
+__builtin__.__dict__['SRCDIR'] = os.path.join(os.path.dirname(__file__), '..')
+
+sys.path.insert(0, SRCDIR)
 
 from jhbuild.errors import DependencyCycleError, UsageError, CommandError
 from jhbuild.modtypes import Package



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