mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-05-02 23:13:40 +03:00
Merge pull request #3635 from radarhere/eps
Changed EPS subprocess stdout from devnull to None
This commit is contained in:
commit
77d1c609f3
|
@ -141,13 +141,11 @@ def Ghostscript(tile, size, fp, scale=1):
|
||||||
|
|
||||||
# push data through Ghostscript
|
# push data through Ghostscript
|
||||||
try:
|
try:
|
||||||
with open(os.devnull, 'w+b') as devnull:
|
|
||||||
startupinfo = None
|
startupinfo = None
|
||||||
if sys.platform.startswith('win'):
|
if sys.platform.startswith('win'):
|
||||||
startupinfo = subprocess.STARTUPINFO()
|
startupinfo = subprocess.STARTUPINFO()
|
||||||
startupinfo.dwFlags |= subprocess.STARTF_USESHOWWINDOW
|
startupinfo.dwFlags |= subprocess.STARTF_USESHOWWINDOW
|
||||||
subprocess.check_call(command, stdout=devnull,
|
subprocess.check_call(command, startupinfo=startupinfo)
|
||||||
startupinfo=startupinfo)
|
|
||||||
im = Image.open(outfile)
|
im = Image.open(outfile)
|
||||||
im.load()
|
im.load()
|
||||||
finally:
|
finally:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user