correct sound paths
This commit is contained in:
parent
b189600ecc
commit
8027f3f537
|
@ -27,8 +27,8 @@ install_requires =
|
||||||
where = src
|
where = src
|
||||||
|
|
||||||
[options.data_files]
|
[options.data_files]
|
||||||
sounds/blunder = sounds/blunder/tts_what_a_blunder.mp3
|
share/blunderboard/sounds/blunder = sounds/blunder/tts_what_a_blunder.mp3
|
||||||
sounds/illegal = sounds/illegal/alarm.mp3
|
share/blunderboard/sounds/illegal = sounds/illegal/alarm.mp3
|
||||||
|
|
||||||
[options.entry_points]
|
[options.entry_points]
|
||||||
console_scripts =
|
console_scripts =
|
||||||
|
|
|
@ -3,8 +3,9 @@ from pathlib import Path
|
||||||
from pygame import mixer
|
from pygame import mixer
|
||||||
import random
|
import random
|
||||||
from stockfish import Stockfish
|
from stockfish import Stockfish
|
||||||
|
import sys
|
||||||
|
|
||||||
sound_path = Path("../../sounds")
|
sound_path = Path(sys.prefix) / "share" / "blunderboard" / "sounds"
|
||||||
|
|
||||||
|
|
||||||
class BlunderEvaluator:
|
class BlunderEvaluator:
|
||||||
|
|
Loading…
Reference in a new issue