Update of /cvsroot/freevo/freevo/src/util
In directory sc8-pr-cvs1:/tmp/cvs-serv14152/util
Modified Files:
fxdparser.py
Log Message:
OVERLAY_DIR is always used
Index: fxdparser.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/util/fxdparser.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** fxdparser.py 1 Jan 2004 12:24:18 -0000 1.5
--- fxdparser.py 3 Jan 2004 17:43:15 -0000 1.6
***************
*** 10,13 ****
--- 10,16 ----
# -----------------------------------------------------------------------
# $Log$
+ # Revision 1.6 2004/01/03 17:43:15 dischi
+ # OVERLAY_DIR is always used
+ #
# Revision 1.5 2004/01/01 12:24:18 dischi
# cache fxd files with pickle
***************
*** 92,105 ****
else:
self.tree = None
! if config.OVERLAY_DIR:
! cache = vfs.getoverlay(filename + '.raw')
! if os.path.isfile(cache) and \
! os.stat(cache)[stat.ST_MTIME] >
os.stat(filename)[stat.ST_MTIME]:
! self.tree = util.read_pickle(cache)
if not self.tree:
f = vfs.open(filename)
self.tree = self.parse(f)
f.close()
! if config.OVERLAY_DIR and self.tree:
util.save_pickle(self.tree, cache)
--- 95,107 ----
else:
self.tree = None
! cache = vfs.getoverlay(filename + '.raw')
! if os.path.isfile(cache) and \
! os.stat(cache)[stat.ST_MTIME] > os.stat(filename)[stat.ST_MTIME]:
! self.tree = util.read_pickle(cache)
if not self.tree:
f = vfs.open(filename)
self.tree = self.parse(f)
f.close()
! if self.tree:
util.save_pickle(self.tree, cache)
-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
Free Linux Tutorials. Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog