pygame music, cant read mp3?

globalrev skanemupp at yahoo.se
Mon May 5 10:09:38 EDT 2008


On 5 Maj, 14:17, "Wojciech Walczak" <wojtek.gminick.walc... at gmail.com>
wrote:
> 2008/5/5, globalrev <skanem... at yahoo.se>:
>
> > pygame.mixer.music.load('C:/Python25/myPrograms/pygameProgs/example1.mp3')
>
> Are you sure that:
>
> os.path.exists('C:/Python25/myPrograms/pygameProgs/example1.mp3') == True?
>
> Check it with python.
>
> --
> Regards,
> Wojtek Walczakhttp://www.stud.umk.pl/~wojtekwa/


>>> import os
>>> os.path.exists('C:/Python25/myPrograms/pygameProgs/dront.mp3') == True
False


but...it is there....

>>> os.path.exists('C:\Python25\myPrograms\pygameProgs\dront.mp3') == True
False

does it matter if i use / or \? which si recommended?



More information about the Python-list mailing list