Skip to content
Extraits de code Groupes Projets
Valider 5ed7e08f rédigé par Loïc Wikle DUBARD's avatar Loïc Wikle DUBARD
Parcourir les fichiers

playlist fix erro opening sound with '\n' at the end

parent 1c3a2831
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -98,7 +98,7 @@ fonctionnalites = [
]
with open("playlist.txt") as f:
playlist_text = f.readlines()
playlist_sound = [pygame.mixer.Sound(sound) for sound in playlist_text]
playlist_sound = [pygame.mixer.Sound(sound.strip().replace("\n", "")) for sound in playlist_text]
class BreakoutException(Exception):
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter