ya2 · news · projects · code · about

fixed the restart of the music
authorFlavio Calva <f.calva@gmail.com>
Mon, 21 Mar 2022 18:02:50 +0000 (19:02 +0100)
committerFlavio Calva <f.calva@gmail.com>
Mon, 21 Mar 2022 18:02:50 +0000 (19:02 +0100)
game/music.py

index f66985402edbeb999e62ecc7a7934a902dbf4fbc..d186c97afcac1daf34c1ade4294bcc6878acc341 100644 (file)
@@ -46,7 +46,7 @@ class MusicMgr:
 
     def _on_frame(self, task):
         if self._music.status() == AudioSound.READY:
-            files = glob(self.curr_path + '/assets/audio/music/*.ogg')
-            files.remove(self.curr_path + '/assets/audio/music/' + self._music.get_name())
+            files = glob(self.curr_path + 'assets/audio/music/*.ogg')
+            files.remove(self.curr_path + 'assets/audio/music/' + self._music.get_name())
             self._start_music(files)
         return task.cont