From 242a2f821e4376ec257ab577e3a2f5e4b4d0461b Mon Sep 17 00:00:00 2001 From: Neal Probert Date: Tue, 2 Feb 2021 13:44:11 -0500 Subject: [PATCH] Minor tweaks --- classes/utils/audio.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/classes/utils/audio.py b/classes/utils/audio.py index 48ca237..c461b01 100644 --- a/classes/utils/audio.py +++ b/classes/utils/audio.py @@ -7,16 +7,15 @@ Created on Fri Jan 8 10:26:56 2021 """ import os -from sys import platform as _platform +from sys import platform sound_args = "" def play_sound(file): - if _platform == "win32" or _platform == "win64" or _platform == "cygwin": + if platform == "win32" or platform == "win64" or platform == "cygwin": cmd = "wmplayer " + '"' + file + '"' else: cmd = "aplay -N " + sound_args + " " + file + " &" # print(cmd) os.system(cmd) -#play_sound("../misc/boat-horn.wav")