Skip to content
This repository was archived by the owner on Jan 6, 2025. It is now read-only.

Fix RuntimeError: Please make sure that Ghostscript is installed #426

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions camelot/ext/ghostscript/_gsprint.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

import sys
from ctypes import *

import distutils.spawn

# base/gserrors.h
#
Expand Down Expand Up @@ -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)
Expand Down