forked from server/soundboard
Fix using path from config
This commit is contained in:
parent
838881a1b3
commit
8cfdac8580
@ -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")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user