mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-04-28 04:53:41 +03:00
Merge pull request #3454 from radarhere/imagegrab
Do not play sound when running screencapture command
This commit is contained in:
commit
8feed91ec1
|
@ -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