closed #4784, Solve the problem of setup.py on windows.

This commit is contained in:
zhangbin 2014-04-14 11:48:48 +08:00
parent 17fe267644
commit 7e807f3ea9
1 changed files with 1 additions and 1 deletions

View File

@ -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: