import os import time import pygame def ouiouioui(): temp_path = os.path.join(r"bs/marshallhatesthis.mp3") pygame.mixer.init() pygame.mixer.music.load(temp_path) pygame.mixer.music.play() while pygame.mixer.music.get_busy(): time.sleep(0.1) pygame.mixer.music.unload() pygame.mixer.quit() if __name__ == "__main__": ouiouioui()