Author: duncan
Date: Fri Dec 21 04:03:42 2007
New Revision: 10224

Log:
Fix to add the file to the end of the command when the file is a real file and
not just a place holder.


Modified:
   branches/rel-1-7/freevo/src/games/genericitem.py
   branches/rel-1/freevo/src/games/genericitem.py

Modified: branches/rel-1-7/freevo/src/games/genericitem.py
==============================================================================
--- branches/rel-1-7/freevo/src/games/genericitem.py    (original)
+++ branches/rel-1-7/freevo/src/games/genericitem.py    Fri Dec 21 04:03:42 2007
@@ -60,9 +60,7 @@
         self.name = os.path.splitext(os.path.basename(file))[0]
 
         # find image for this file
-        # find image for this file
-        shot = imgpath + '/' + \
-               os.path.splitext(os.path.basename(file))[0] + ".png"
+        shot = imgpath + '/' + os.path.splitext(os.path.basename(file))[0] + 
".png"
         if os.path.isfile(shot):
             self.image = shot
         elif os.path.isfile(os.path.splitext(file)[0] + ".png"):
@@ -70,7 +68,8 @@
 
         command = ['--prio=%s' % config.GAMES_NICE, cmd]
         command.extend(args.split())
-        #command.append(file)
+        if os.path.getsize(file) > 0:
+            command.append(file)
 
         self.command = command
 

Modified: branches/rel-1/freevo/src/games/genericitem.py
==============================================================================
--- branches/rel-1/freevo/src/games/genericitem.py      (original)
+++ branches/rel-1/freevo/src/games/genericitem.py      Fri Dec 21 04:03:42 2007
@@ -60,9 +60,7 @@
         self.name = os.path.splitext(os.path.basename(file))[0]
 
         # find image for this file
-        # find image for this file
-        shot = imgpath + '/' + \
-               os.path.splitext(os.path.basename(file))[0] + ".png"
+        shot = imgpath + '/' + os.path.splitext(os.path.basename(file))[0] + 
".png"
         if os.path.isfile(shot):
             self.image = shot
         elif os.path.isfile(os.path.splitext(file)[0] + ".png"):
@@ -70,7 +68,8 @@
 
         command = ['--prio=%s' % config.GAMES_NICE, cmd]
         command.extend(args.split())
-        #command.append(file)
+        if os.path.getsize(file) > 0:
+            command.append(file)
 
         self.command = command
 

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to