mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-04-26 03:43:46 +03:00
Minor enhancement for beep
This commit is contained in:
parent
a905b8d8f5
commit
8df3d7a6fa
|
@ -45,6 +45,10 @@ def _win_wav_play(filename):
|
||||||
winsound.PlaySound(filename, winsound.SND_FILENAME)
|
winsound.PlaySound(filename, winsound.SND_FILENAME)
|
||||||
|
|
||||||
def _linux_wav_play(filename):
|
def _linux_wav_play(filename):
|
||||||
|
for _ in ("aplay", "paplay", "play"):
|
||||||
|
if not os.system("%s '%s' 2>/dev/null" % (_, filename)):
|
||||||
|
return
|
||||||
|
|
||||||
import ctypes
|
import ctypes
|
||||||
|
|
||||||
PA_STREAM_PLAYBACK = 1
|
PA_STREAM_PLAYBACK = 1
|
||||||
|
|
Loading…
Reference in New Issue
Block a user