Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
cmake config过程中需要运行几个python脚本来生成一些文件, 如果python 链接到2.7版本,则可以正常生成,如果python链接到了3.5 3.6等,则无法正常生成,该pr做出修改:

1、如果没有正确生成,则在cmake config过程中报错并终止,不用等到编译过程中报错。
2、修改脚本,是python2 python3都可以使cmake过程正常。