From 5ed7e08f260b71c93aa6704aafc012252079e802 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Wikle=20DUBARD?= <loic97429@gmail.com> Date: Sun, 29 Sep 2019 19:03:44 +0200 Subject: [PATCH] playlist fix erro opening sound with '\n' at the end --- myimports.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/myimports.py b/myimports.py index ec7080a..9d0f78b 100644 --- a/myimports.py +++ b/myimports.py @@ -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): -- GitLab