[Python-checkins] CVS: python/dist/src/Mac/scripts bgenall.py,1.1,1.2
Jack Jansen
jackjansen@users.sourceforge.net
2001年12月14日 15:01:37 -0800
Update of /cvsroot/python/python/dist/src/Mac/scripts
In directory usw-pr-cvs1:/tmp/cvs-serv19614/Python/Mac/scripts
Modified Files:
bgenall.py
Log Message:
The import of the scanner can also fail, cater for that.
Index: bgenall.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/scripts/bgenall.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** bgenall.py 2001年05月22日 22:18:21 1.1
--- bgenall.py 2001年12月14日 23:01:34 1.2
***************
*** 7,11 ****
def bgenone(dirname, shortname):
os.chdir(dirname)
! m = __import__(shortname+'scan')
try:
m.main()
--- 7,14 ----
def bgenone(dirname, shortname):
os.chdir(dirname)
! try:
! m = __import__(shortname+'scan')
! except:
! return 0
try:
m.main()