Duncan-

>
> The solution may be very simple, if the size of the file is bigger than
> 0 bytes then append the file.
>
> Index: src/games/genericitem.py
> ===================================================================
> --- src/games/genericitem.py    (revision 10218)
> +++ src/games/genericitem.py    (working copy)
> @@ -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
>
 I think this is a good idea. It will help mantain back compatiablity
for the 1.7.x release. Maybe for 1.8.x we can come up with a cleaner
setup for the genericitem.py. The current one still needs a lot of
busy work to get working right, with needing the empty file and
directory to work right. Or maybe just a better write-up in the Wiki.
I have an idea about that I need to test out.

Evan

-------------------------------------------------------------------------
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-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-users

Reply via email to