Minor tweaks

This commit is contained in:
2021-02-02 13:44:11 -05:00
parent f66d1489e9
commit 242a2f821e

View File

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