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 --- buildtools/wafsamba/wafsamba.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'buildtools') diff --git a/buildtools/wafsamba/wafsamba.py b/buildtools/wafsamba/wafsamba.py index 8c42966057..ebe8fba1f7 100644 --- a/buildtools/wafsamba/wafsamba.py +++ b/buildtools/wafsamba/wafsamba.py @@ -37,7 +37,7 @@ if os.environ.get('WAF_NOTHREADS') == '1': LIB_PATH="shared" -os.putenv('PYTHONUNBUFFERED', '1') +os.environ['PYTHONUNBUFFERED'] = '1' if Constants.HEXVERSION < 0x105019: -- cgit