fixed as follow error

fixed as follow error:
TypeError: cannot concatenate 'str' and 'NoneType' objects
This commit is contained in:
dulangci 2014-07-18 09:18:33 +08:00
parent ea2165e6ba
commit 7ada094e1f
1 changed files with 1 additions and 1 deletions

View File

@ -557,7 +557,7 @@ class SetEnvVar(object):
if ret is not None: if ret is not None:
print(" ->Path " + ret + " was found\n") print(" ->Path " + ret + " was found\n")
else: else:
print(" ->Command " + ret + " not found\n") print(" ->Command " + cmd + " not found\n")
return ret return ret
def _find_value_from_sys(self, var_name): def _find_value_from_sys(self, var_name):