Update of /cvsroot/freevo/freevo/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3040

Modified Files:
        config.py 
Log Message:
do dir processing for games too. fixes annoying crashes due to trailing slashes

Index: config.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/config.py,v
retrieving revision 1.103
retrieving revision 1.104
diff -C2 -d -r1.103 -r1.104
*** config.py   21 Mar 2004 10:01:18 -0000      1.103
--- config.py   11 Apr 2004 18:51:59 -0000      1.104
***************
*** 23,26 ****
--- 23,29 ----
  # -----------------------------------------------------------------------
  # $Log$
+ # Revision 1.104  2004/04/11 18:51:59  mikeruelle
+ # do dir processing for games too. fixes annoying crashes due to trailing slashes
+ #
  # Revision 1.103  2004/03/21 10:01:18  dischi
  # FREEVO_LOCALE is used somewhere else
***************
*** 585,589 ****
              VIDEO_ONLY_SCAN_DATADIR = True
  
!     elif type != 'games':
          # The algorithm doesn't work for GAMES_ITEMS, so we leave it out
          abs = []
--- 588,604 ----
              VIDEO_ONLY_SCAN_DATADIR = True
  
!     elif type == 'games':
!         abs = []
!         for d in x:
!             pos = d[1].find(':')
!             if pos == -1:
!                 abs.append((d[0], os.path.abspath(d[1]), d[2]))
!             else:
!                 if pos > d[1].find('/'):                        
!                     abs.append((d[0], os.path.abspath(d[1]), d[2]))
!                 else:
!                     abs.append((d[0], d[1][0:pos+1] + os.path.abspath(d[1][pos+1:]), 
d[2]))
!         exec ('%s = abs' % n)
!     else:
          # The algorithm doesn't work for GAMES_ITEMS, so we leave it out
          abs = []



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to