mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-07-05 12:23:18 +03:00
Do not play sound when running screencapture command
This commit is contained in:
parent
3d76a686c4
commit
40c6e4f136
|
@ -14,7 +14,7 @@ try:
|
||||||
|
|
||||||
def test_grabclipboard(self):
|
def test_grabclipboard(self):
|
||||||
if sys.platform == "darwin":
|
if sys.platform == "darwin":
|
||||||
subprocess.call(['screencapture', '-c'])
|
subprocess.call(['screencapture', '-cx'])
|
||||||
else:
|
else:
|
||||||
p = subprocess.Popen(['powershell', '-command', '-'],
|
p = subprocess.Popen(['powershell', '-command', '-'],
|
||||||
stdin=subprocess.PIPE)
|
stdin=subprocess.PIPE)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user