From 8cfdac85803767102a77b1c54b31b793faa86b44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20M=C3=BCller?= Date: Thu, 13 Jul 2017 23:08:49 +0200 Subject: [PATCH] Fix using path from config --- soundboard.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")