Catch any importing errors.

This commit is contained in:
Chris Johns 2013-03-04 09:17:41 +11:00
parent 26595c7b29
commit c18c4b6d33
2 changed files with 26 additions and 11 deletions

View File

@ -29,11 +29,18 @@ import os
import re
import sys
try:
import defaults
import error
import execute
import log
import path
except KeyboardInterrupt:
print 'user terminated'
sys.exit(1)
except:
print 'unknown application load error'
sys.exit(1)
def _check_bool(value):
if value.isdigit():

View File

@ -28,12 +28,20 @@ import glob
import operator
import os
try:
import build
import check
import defaults
import error
import log
import path
import reports
except KeyboardInterrupt:
print 'user terminated'
sys.exit(1)
except:
print 'unknown application load error'
sys.exit(1)
#
# Version of RTEMS Source Builder Set Builder.