diff --git a/setup.cfg b/setup.cfg index 6e32231..e76c9da 100644 --- a/setup.cfg +++ b/setup.cfg @@ -27,8 +27,8 @@ install_requires = where = src [options.data_files] -sounds/blunder = sounds/blunder/tts_what_a_blunder.mp3 -sounds/illegal = sounds/illegal/alarm.mp3 +share/blunderboard/sounds/blunder = sounds/blunder/tts_what_a_blunder.mp3 +share/blunderboard/sounds/illegal = sounds/illegal/alarm.mp3 [options.entry_points] console_scripts = diff --git a/src/blunderboard/blunderevaluator.py b/src/blunderboard/blunderevaluator.py index 29707c8..2c41746 100644 --- a/src/blunderboard/blunderevaluator.py +++ b/src/blunderboard/blunderevaluator.py @@ -3,8 +3,9 @@ from pathlib import Path from pygame import mixer import random from stockfish import Stockfish +import sys -sound_path = Path("../../sounds") +sound_path = Path(sys.prefix) / "share" / "blunderboard" / "sounds" class BlunderEvaluator: