[kupfer] wscript: Fix waf test by putting current dir in PYTHONPATH



commit 52bc3319e615d277e3f10ed81392cd91f56bd39e
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date:   Mon Nov 2 11:58:18 2009 +0100

    wscript: Fix waf test by putting current dir in PYTHONPATH
    
    When running waf test, some modules want access to the kupfer package
    which they only have if the parent dir of the package is put in
    PYTHONPATH.

 wscript |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/wscript b/wscript
index 52356c7..e02ebba 100644
--- a/wscript
+++ b/wscript
@@ -223,6 +223,7 @@ def test(bld):
 	# find all files with doctests
 	python = os.getenv("PYTHON", "python")
 	paths = os.popen("grep -lR 'doctest.testmod()' kupfer/").read().split()
+	os.putenv("PYTHONPATH", ".")
 	all_success = True
 	verbose = ("-v" in sys.argv)
 	for p in paths:



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