summaryrefslogtreecommitdiffstats
path: root/Mac
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2002-08-05 21:14:16 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2002-08-05 21:14:16 (GMT)
commit20417bcd180e1a3e6a95b1a116956bc5ebecba7d (patch)
treec84a697b772e35fc034deb921f63e50f6dafd9fc /Mac
parentc4ff194bdd0b70241a8e56cfaa07d76eff6f3585 (diff)
downloadcpython-20417bcd180e1a3e6a95b1a116956bc5ebecba7d.zip
cpython-20417bcd180e1a3e6a95b1a116956bc5ebecba7d.tar.gz
cpython-20417bcd180e1a3e6a95b1a116956bc5ebecba7d.tar.bz2
Better output for errors, and some progress reports.
Handle the two modules with non-standard scanner module names.
Diffstat (limited to 'Mac')
-rw-r--r--Mac/scripts/bgenall.py13
1 files changed, 12 insertions, 1 deletions
diff --git a/Mac/scripts/bgenall.py b/Mac/scripts/bgenall.py
index 8fe36aa..6490265 100644
--- a/Mac/scripts/bgenall.py
+++ b/Mac/scripts/bgenall.py
@@ -6,13 +6,24 @@ import string
def bgenone(dirname, shortname):
os.chdir(dirname)
+ print '%s:'%shortname
+ # Sigh, we don't want to lose CVS history, so two
+ # modules have funny names:
+ if shortname == 'carbonevt':
+ modulename = 'CarbonEvtscan'
+ elif shortname == 'ibcarbon':
+ modulename = 'IBCarbonscan'
+ else:
+ modulename = shortname + 'scan'
try:
- m = __import__(shortname+'scan')
+ m = __import__(modulename)
except:
+ print "Error:", shortname, sys.exc_info()[1]
return 0
try:
m.main()
except:
+ print "Error:", shortname, sys.exc_info()[1]
return 0
return 1