Fix using path from config

This commit is contained in:
Martin Müller 2017-07-13 23:08:49 +02:00
parent 838881a1b3
commit 8cfdac8580

View File

@ -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")