Update of /cvsroot/freevo/freevo/src/util
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5743
Modified Files:
videothumb.py
Log Message:
only import config/vfs when needed
Index: videothumb.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/util/videothumb.py,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** videothumb.py 10 Jul 2004 12:33:42 -0000 1.13
--- videothumb.py 21 Jul 2004 11:34:31 -0000 1.14
***************
*** 14,17 ****
--- 14,20 ----
# -----------------------------------------------------------------------
# $Log$
+ # Revision 1.14 2004/07/21 11:34:31 dischi
+ # only import config/vfs when needed
+ #
# Revision 1.13 2004/07/10 12:33:42 dischi
# header cleanup
***************
*** 132,138 ****
if __name__ == "__main__":
- import config
import popen2
- import vfs
mplayer = os.path.abspath(sys.argv[1])
--- 135,139 ----
***************
*** 178,182 ****
shutil.copy(capture, imagefile)
except:
! shutil.copy(capture, vfs.getoverlay(imagefile[1:]))
else:
print "error creating capture for %s" % filename
--- 179,188 ----
shutil.copy(capture, imagefile)
except:
! try:
! import config
! import vfs
! shutil.copy(capture, vfs.getoverlay(imagefile[1:]))
! except:
! print 'unable to write file'
else:
print "error creating capture for %s" % filename
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog