mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-10 19:56:47 +03:00
Use relevant extension for temporary file
This commit is contained in:
parent
3c4ccdcff5
commit
e52fa8fe38
|
@ -95,7 +95,7 @@ def grab(bbox=None, include_layered_windows=False, all_screens=False, xdisplay=N
|
||||||
|
|
||||||
def grabclipboard():
|
def grabclipboard():
|
||||||
if sys.platform == "darwin":
|
if sys.platform == "darwin":
|
||||||
fh, filepath = tempfile.mkstemp(".jpg")
|
fh, filepath = tempfile.mkstemp(".png")
|
||||||
os.close(fh)
|
os.close(fh)
|
||||||
commands = [
|
commands = [
|
||||||
'set theFile to (open for access POSIX file "'
|
'set theFile to (open for access POSIX file "'
|
||||||
|
|
Loading…
Reference in New Issue
Block a user