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)