소스 검색

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

Meco Man 2 년 전
부모
커밋
53c6e7308c
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      bsp/simulator/rtconfig.py

+ 2 - 2
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: