Update of /cvsroot/pythoncard/PythonCard
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23413
Modified Files:
model.py
Log Message:
Detect and warn if rsource file is missing.
Index: model.py
===================================================================
RCS file: /cvsroot/pythoncard/PythonCard/model.py,v
retrieving revision 1.191
retrieving revision 1.192
diff -C2 -d -r1.191 -r1.192
*** model.py 30 Mar 2005 18:07:39 -0000 1.191
--- model.py 17 May 2005 16:35:52 -0000 1.192
***************
*** 172,179 ****
--- 172,183 ----
log.debug(filenames)
+ # AGT 2005-05-17 Detect missing resource file, give some warning; no clean recovery possible.
+ filename = None
for f in filenames:
if os.path.exists(f):
filename = f
break
+ if not filename:
+ print "no resource file for", base
return filename
|