From 949427c208159f4ac580f547dd5465a70b4751b7 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 21 Feb 2011 16:46:58 +1100 Subject: python: use os.environ[] instead of os.putenv() using os.putenv() causes too much confusion, as it doesn't update os.getenv() Pair-Programmed-With: Andrew Bartlett --- lib/tdb/wscript | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/tdb/wscript') diff --git a/lib/tdb/wscript b/lib/tdb/wscript index d20c93893c..f704bc79aa 100644 --- a/lib/tdb/wscript +++ b/lib/tdb/wscript @@ -119,7 +119,7 @@ def test(ctx): test_prefix = "%s/st" % (Utils.g_module.blddir) shutil.rmtree(test_prefix, ignore_errors=True) os.makedirs(test_prefix) - os.putenv('TEST_DATA_PREFIX', test_prefix) + os.environ['TEST_DATA_PREFIX'] = test_prefix cmd = os.path.join(Utils.g_module.blddir, 'tdbtorture') ret = samba_utils.RUN_COMMAND(cmd) print("testsuite returned %d" % ret) -- cgit