From 7e807f3ea944c929f22e1c76d27956d92d3dfe5e Mon Sep 17 00:00:00 2001 From: zhangbin Date: Mon, 14 Apr 2014 11:48:48 +0800 Subject: [PATCH] closed #4784, Solve the problem of setup.py on windows. --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 4392d2d666..b3a258b4c3 100755 --- a/setup.py +++ b/setup.py @@ -227,7 +227,7 @@ class SetEnvVar(object): 0, _winreg.KEY_READ) - ret = _winreg.QueryValueEx(env, var) + ret = _winreg.QueryValueEx(env, var)[0] _winreg.CloseKey(env) except Exception: if env: