diff --git a/soundboard.py b/soundboard.py index 3299973..70e0205 100644 --- a/soundboard.py +++ b/soundboard.py @@ -19,7 +19,7 @@ def index(sound=None, text=None, video=None): sounds = sorted(os.listdir(config.path)) if sound is not None and sound in sounds: - subprocess.Popen(["omxplayer", os.path.join(path, sound)], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) + subprocess.Popen(["omxplayer", os.path.join(config.path, sound)], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) if text is None: text = request.form.get("text")