diff vixm/main.py @ 46:2d570448aba5 pure

Abstract out the stats code a little bit more This is in preparation for moving the stats code completely out of player code
author Josef "Jeff" Sipek <jeffpc@josefsipek.net>
date Mon, 06 Nov 2006 05:19:23 -0500
parents 2bf81d95246a
children 1ae315a49009
line wrap: on
line diff
--- a/vixm/main.py	Mon Nov 06 05:10:37 2006 -0500
+++ b/vixm/main.py	Mon Nov 06 05:19:23 2006 -0500
@@ -3,7 +3,7 @@
 import playlist, song, player
 import ui as uimod
 
-def run(filename):
+def run(listfn, statsfn):
 	""" this is where we start execution """
 
 	# first, let's create the two playlists
@@ -16,7 +16,7 @@
 	print "Loading songs from XMMS's playlist..."
 	songs = []
 	idx = 0
-	for l in open(filename, "r").readlines():
+	for l in open(listfn, "r").readlines():
 		if l[0] == "#":
 			continue