Update of /cvsroot/freevo/freevo/src
In directory sc8-pr-cvs1:/tmp/cvs-serv29297
Modified Files:
playlist.py
Log Message:
allow fxd playlists with relative path
Index: playlist.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/playlist.py,v
retrieving revision 1.42
retrieving revision 1.43
diff -C2 -d -r1.42 -r1.43
*** playlist.py 10 Dec 2003 19:51:51 -0000 1.42
--- playlist.py 13 Dec 2003 18:16:34 -0000 1.43
***************
*** 10,13 ****
--- 10,16 ----
# -----------------------------------------------------------------------
# $Log$
+ # Revision 1.43 2003/12/13 18:16:34 dischi
+ # allow fxd playlists with relative path
+ #
# Revision 1.42 2003/12/10 19:51:51 dischi
# make playlist files work again
***************
*** 352,356 ****
self.menuw = menuw
-
if not self.playlist:
# XXX PopupBox please
--- 355,358 ----
***************
*** 555,558 ****
--- 557,561 ----
"""
children = fxd.get_children(node, 'files')
+ dirname = os.path.dirname(fxd.getattr(None, 'filename', ''))
if children:
children = children[0].children
***************
*** 560,568 ****
items = []
for child in children:
if child.name == 'directory':
! items.append((fxd.gettext(child), fxd.getattr(child, 'recursive',
0)))
elif child.name == 'file':
! items.append(fxd.gettext(child))
pl = Playlist('', items, fxd.getattr(None, 'parent', None),
--- 563,572 ----
items = []
for child in children:
+ fname = os.path.join(dirname, fxd.gettext(child))
if child.name == 'directory':
! items.append((fname, fxd.getattr(child, 'recursive', 0)))
elif child.name == 'file':
! items.append(fname)
pl = Playlist('', items, fxd.getattr(None, 'parent', None),
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog