提交 53c6e730 编写于 作者: mysterywolf's avatar mysterywolf 提交者: mysterywolf

[simulator] exit()函数改为exit(1)

上级 40fe10ba
......@@ -32,13 +32,13 @@ elif CROSS_TOOL == 'msvc':
vc_versions = SCons.Tool.MSCommon.vc.get_installed_vcs()
if not vc_versions:
print("No vc version!")
exit()
exit(1)
else:
vc_version = vc_versions[0]
EXEC_PATH = SCons.Tool.MSCommon.vc.find_vc_pdir(vc_version)
if not EXEC_PATH:
print('Installed VC %s failure!' % vc_version)
exit()
exit(1)
else:
print('Successfully installed VC %s, path:%s' % (vc_version, EXEC_PATH))
except:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册