diff options
| author | Meco Man <[email protected]> | 2022-08-14 19:40:50 -0400 |
|---|---|---|
| committer | Man, Jianting (Meco) <[email protected]> | 2022-08-14 21:49:43 -0400 |
| commit | 53c6e7308c803a4c19a62b614cc908107b1441ec (patch) | |
| tree | ba23e5374276a600d0c89d4d0dcdc28d94bbb7fa /bsp | |
| parent | 40fe10ba15447c24100440d974a2c1506f226f83 (diff) | |
[simulator] exit()函数改为exit(1)
Diffstat (limited to 'bsp')
| -rwxr-xr-x | bsp/simulator/rtconfig.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bsp/simulator/rtconfig.py b/bsp/simulator/rtconfig.py index cecca10fac..d4e6a5afce 100755 --- a/bsp/simulator/rtconfig.py +++ b/bsp/simulator/rtconfig.py @@ -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: |
