8294 Recognise Ghostscript on 64bit ms-windows

This commit is contained in:
Sam Manzi 2016-03-03 15:28:38 +11:00
parent 8d08b62c8d
commit 4960f859ed

View File

@ -312,7 +312,10 @@ def show_settings():
try:
if win():
gsversion_str = Popen(['gswin32c', '--version'], stdout=PIPE).communicate(input=None)[0]
try:
gsversion_str = Popen(['gswin32c', '--version'], stdout=PIPE).communicate(input=None)[0]
except:
gsversion_str = Popen(['gswin64c', '--version'], stdout=PIPE).communicate(input=None)[0]
else:
gsversion_str = Popen(['gs', '--version'], stdout=PIPE).communicate(input=None)[0]
if isinstance(gsversion_str, bytes) and sys.stdin.encoding: