Update of /cvsroot/freevo/freevo/src
In directory sc8-pr-cvs1:/tmp/cvs-serv13142/src

Modified Files:
        config.py 
Log Message:
Freevo now needs the vfs active. OVERLAY_DIR is set to ~/.freevo/vfs as
default value.


Index: config.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/config.py,v
retrieving revision 1.85
retrieving revision 1.86
diff -C2 -d -r1.85 -r1.86
*** config.py   1 Jan 2004 12:27:05 -0000       1.85
--- config.py   3 Jan 2004 17:38:17 -0000       1.86
***************
*** 23,26 ****
--- 23,30 ----
  # -----------------------------------------------------------------------
  # $Log$
+ # Revision 1.86  2004/01/03 17:38:17  dischi
+ # Freevo now needs the vfs active. OVERLAY_DIR is set to ~/.freevo/vfs as
+ # default value.
+ #
  # Revision 1.85  2004/01/01 12:27:05  dischi
  # make absolute pathnames
***************
*** 611,614 ****
--- 615,620 ----
  #
  # set data dirs
+ # if not set, set it to root and home dir
+ # if set, make all path names absolute
  #
  for type in ('video', 'audio', 'image', 'games'):
***************
*** 627,632 ****
          if type == 'video':
              VIDEO_ONLY_SCAN_DATADIR = True
  
! 
  if not TV_RECORD_DIR:
      TV_RECORD_DIR = VIDEO_ITEMS[0][1]
--- 633,647 ----
          if type == 'video':
              VIDEO_ONLY_SCAN_DATADIR = True
+     else:
+         abs = []
+         for d in x:
+             if isinstance(d, str):
+                 abs.append(os.path.abspath(d))
+             else:
+                 abs.append((d[0], os.path.abspath(d[1])))
+         exec ('%s = abs' % n)
+             
  
!         
  if not TV_RECORD_DIR:
      TV_RECORD_DIR = VIDEO_ITEMS[0][1]
***************
*** 868,884 ****
  #
  
! if not os.path.isdir('%s/thumbnails/' % FREEVO_CACHEDIR):
!     import stat
!     os.mkdir('%s/thumbnails/' % FREEVO_CACHEDIR,
!              stat.S_IMODE(os.stat(FREEVO_CACHEDIR)[stat.ST_MODE]))
! 
! if OVERLAY_DIR_STORE_THUMBNAILS and not OVERLAY_DIR:
!     print 'OVERLAY_DIR not set, use normal caching'
!     OVERLAY_DIR_STORE_THUMBNAILS = False
! 
! if OVERLAY_DIR_STORE_MMPYTHON_DATA and not OVERLAY_DIR:
!     print 'OVERLAY_DIR not set, use normal mmpython cache'
!     OVERLAY_DIR_STORE_MMPYTHON_DATA = False
! 
  # Make sure OVERLAY_DIR doesn't ends with a slash
  # With that, we don't need to use os.path.join, normal string
--- 883,889 ----
  #
  
! if not os.path.isdir(OVERLAY_DIR):
!     os.mkdir(OVERLAY_DIR)
!     
  # Make sure OVERLAY_DIR doesn't ends with a slash
  # With that, we don't need to use os.path.join, normal string




-------------------------------------------------------
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

Reply via email to