Update of /cvsroot/freevo/freevo/src In directory sc8-pr-cvs1:/tmp/cvs-serv30568
Modified Files: util.py Log Message: add default parameter to getimage Index: util.py =================================================================== RCS file: /cvsroot/freevo/freevo/src/util.py,v retrieving revision 1.44 retrieving revision 1.45 diff -C2 -d -r1.44 -r1.45 *** util.py 23 Aug 2003 15:15:21 -0000 1.44 --- util.py 23 Aug 2003 18:33:29 -0000 1.45 *************** *** 11,14 **** --- 11,17 ---- # ----------------------------------------------------------------------- # $Log$ + # Revision 1.45 2003/08/23 18:33:29 dischi + # add default parameter to getimage + # # Revision 1.44 2003/08/23 15:15:21 dischi # add cover searcher *************** *** 342,351 **** FILENAME_REGEXP = re.compile("^(.*?)_(.)(.*)$") ! def getimage(base): if os.path.isfile(base+'.png'): return base+'.png' if os.path.isfile(base+'.jpg'): return base+'.jpg' ! return None --- 345,354 ---- FILENAME_REGEXP = re.compile("^(.*?)_(.)(.*)$") ! def getimage(base, default=None): if os.path.isfile(base+'.png'): return base+'.png' if os.path.isfile(base+'.jpg'): return base+'.jpg' ! return default ------------------------------------------------------- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0 _______________________________________________ Freevo-cvslog mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freevo-cvslog