Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a905b8d commit 8df3d7aCopy full SHA for 8df3d7a
1 file changed
extra/beep/beep.py
@@ -45,6 +45,10 @@ def _win_wav_play(filename):
45
winsound.PlaySound(filename, winsound.SND_FILENAME)
46
47
def _linux_wav_play(filename):
48
+ for _ in ("aplay", "paplay", "play"):
49
+ if not os.system("%s '%s' 2>/dev/null" % (_, filename)):
50
+ return
51
+
52
import ctypes
53
54
PA_STREAM_PLAYBACK = 1
0 commit comments