The import of the scanner can also fail, cater for that.

This commit is contained in:
Jack Jansen 2001-12-14 23:01:34 +00:00
parent 28f14012d7
commit 1b8bd94f73
1 changed files with 4 additions and 1 deletions

View File

@ -6,7 +6,10 @@ import string
def bgenone(dirname, shortname):
os.chdir(dirname)
m = __import__(shortname+'scan')
try:
m = __import__(shortname+'scan')
except:
return 0
try:
m.main()
except: