Path question in pygame (Windows 98)

Karp karpablanca at yahoo.com
Sat Dec 14 20:24:00 EST 2002


I have this little script that puzzles me (in Windows 98):

import pygame
from pygame.locals import *

pygame.init()

pygame.mixer.music.load('c:/musica/midi/songs/agrace.mid')
pygame.mixer.music.play()

It works ok in IDLE but refuse to work when executed in a command line
way like "python little_script.py".

When I exe it in a MSDOS window, I'm informed there is a problem with
the path or with the file.

A twin version of it with tkSnack doesn't suffer this kind of
troubles, tho.

Someone can help here?

Thanks.



More information about the Python-list mailing list