Update of /cvsroot/freevo/freevo/helpers
In directory sc8-pr-cvs1:/tmp/cvs-serv22199

Modified Files:
        cache.py imdb.py 
Log Message:
remove some stuff we do not need with the new freevo script

Index: cache.py
===================================================================
RCS file: /cvsroot/freevo/freevo/helpers/cache.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** cache.py    18 Jul 2003 21:31:16 -0000      1.2
--- cache.py    4 Aug 2003 18:42:03 -0000       1.3
***************
*** 4,23 ****
  import os
  
! try:
!     import config
! 
! except ImportError:
!     if 'FREEVO_HOME' in os.environ and os.environ['FREEVO_HOME']:
!         os.chdir(os.environ['FREEVO_HOME'])
!     else:
!         os.chdir(os.path.join(os.path.dirname(sys.argv[0]), '..'))
!     sys.path = [ 'src', ] + sys.path
!     try:
!         import config
!     except:
!         print 'can\'t find freevo files. Please set FREEVO_HOME to the Freevo root 
directory'
!         sys.exit(1)
! 
! 
  import util
  
--- 4,8 ----
  import os
  
! import config
  import util
  
***************
*** 65,70 ****
--- 50,64 ----
          print d
          mmpython.cache_dir(d)
+ 
      
  if __name__ == "__main__":
+     if len(sys.argv)>1 and sys.argv[1] == '--help':
+         print 'freevo cache helper to delete unused cache entries and to'
+         print 'cache all files in your data directories.'
+         print
+         print 'this script has no options (yet)'
+         print
+         sys.exit(0)
+         
      delete_old_files()
      cache_directories()

Index: imdb.py
===================================================================
RCS file: /cvsroot/freevo/freevo/helpers/imdb.py,v
retrieving revision 1.26
retrieving revision 1.27
diff -C2 -d -r1.26 -r1.27
*** imdb.py     18 Jul 2003 21:31:03 -0000      1.26
--- imdb.py     4 Aug 2003 18:42:03 -0000       1.27
***************
*** 12,15 ****
--- 12,18 ----
  # -----------------------------------------------------------------------
  # $Log$
+ # Revision 1.27  2003/08/04 18:42:03  dischi
+ # remove some stuff we do not need with the new freevo script
+ #
  # Revision 1.26  2003/07/18 21:31:03  dischi
  # new imdb helper based in the new fxdimdb
***************
*** 58,85 ****
  
  
- 
  import sys
  import os
  
! current_dir = os.getcwd()
! os.environ['FREEVO_STARTDIR'] = current_dir
! 
! if 'FREEVO_HOME' in os.environ and os.environ['FREEVO_HOME']:
!     os.chdir(os.environ['FREEVO_HOME'])
! else:
!     os.chdir(os.path.join(os.path.dirname(sys.argv[0]), '..'))
! 
! sys.path = [ 'src', ] + sys.path
  
- try:
-     import config
- except:
-     print 'can\'t find freevo files. Please set FREEVO_HOME to the Freevo root 
directory'
-     sys.exit(1)
-     
  from video.fxdimdb import FxdImdb, makeVideo
  from random import Random
  
- os.chdir(current_dir)
  
  FALSE = 0
--- 61,72 ----
  
  
  import sys
  import os
  
! import config
  
  from video.fxdimdb import FxdImdb, makeVideo
  from random import Random
  
  
  FALSE = 0




-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to