Merge pull request #3611 from radarhere/eps

Changed EPS subprocess stdin from devnull to None
This commit is contained in:
Hugo 2019-02-03 11:50:47 +02:00 committed by GitHub
commit d0fa318c01
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -144,7 +144,7 @@ def Ghostscript(tile, size, fp, scale=1):
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, stdin=devnull, stdout=devnull, subprocess.check_call(command, stdout=devnull,
startupinfo=startupinfo) startupinfo=startupinfo)
im = Image.open(outfile) im = Image.open(outfile)
im.load() im.load()