Skip to content

Commit

Permalink
Update install.py
Browse files Browse the repository at this point in the history
python 2.6 version install failed, sys.version_info is tuple.
  • Loading branch information
johnniesong authored Apr 12, 2017
1 parent e18c875 commit d52fcae
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion install.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,11 @@ def exec_sys_cmd(cmd, accept_failed = False):
return False

def common_input( s ):
if sys.version_info.major == 3:
if isinstance(sys.version_info,types.TupleType):
pyMajorVersion=sys.version_info[0]
else:
pyMajorVersion=sys.version_info.major
if pyMajorVersion == 3:
return input( s )
else:
return raw_input( s )
Expand Down

0 comments on commit d52fcae

Please sign in to comment.