Explorar o código

[tools][scons] Add error notice when 'EXEC_PATH' is not exist.

armink %!s(int64=7) %!d(string=hai) anos
pai
achega
1c37c813b5
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      tools/building.py

+ 3 - 0
tools/building.py

@@ -130,6 +130,9 @@ def PrepareBuilding(env, root_directory, has_libcpu=False, remove_components = [
 
     sys.path = sys.path + [os.path.join(Rtt_Root, 'tools')]
 
+    if not os.path.exists(rtconfig.EXEC_PATH):
+        print "Error: Toolchain path (%s) is not exist, please check 'EXEC_PATH' in path or rtconfig.py." % rtconfig.EXEC_PATH
+        sys.exit(1)
     # add compability with Keil MDK 4.6 which changes the directory of armcc.exe
     if rtconfig.PLATFORM == 'armcc':
         if not os.path.isfile(os.path.join(rtconfig.EXEC_PATH, 'armcc.exe')):