From 69916b62deb36140caf1fb311a3e7cebdf1c7acb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=96mer=20=C3=96zak?= Date: Mon, 15 Jun 2020 21:22:44 -0500 Subject: [PATCH] Update _gsprint.py Address #282 --- camelot/ext/ghostscript/_gsprint.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/camelot/ext/ghostscript/_gsprint.py b/camelot/ext/ghostscript/_gsprint.py index efc6be79..2f5f28e5 100644 --- a/camelot/ext/ghostscript/_gsprint.py +++ b/camelot/ext/ghostscript/_gsprint.py @@ -25,7 +25,7 @@ import sys from ctypes import * - +import distutils.spawn # base/gserrors.h # @@ -253,7 +253,7 @@ def __win32_finddll(): # shared object file not found import ctypes.util - libgs = ctypes.util.find_library("gs") + libgs = distutils.spawn.find_executable("gs") if not libgs: raise RuntimeError("Please make sure that Ghostscript is installed") libgs = cdll.LoadLibrary(libgs)