Delay ghostscript import
This commit is contained in:
@@ -4,8 +4,6 @@ import sys
|
|||||||
import ctypes
|
import ctypes
|
||||||
from ctypes.util import find_library
|
from ctypes.util import find_library
|
||||||
|
|
||||||
import ghostscript
|
|
||||||
|
|
||||||
|
|
||||||
def installed_posix():
|
def installed_posix():
|
||||||
library = find_library("gs")
|
library = find_library("gs")
|
||||||
@@ -35,6 +33,8 @@ class GhostscriptBackend(object):
|
|||||||
"here: https://camelot-py.readthedocs.io/en/master/user/install-deps.html"
|
"here: https://camelot-py.readthedocs.io/en/master/user/install-deps.html"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
import ghostscript
|
||||||
|
|
||||||
gs_command = [
|
gs_command = [
|
||||||
"gs",
|
"gs",
|
||||||
"-q",
|
"-q",
|
||||||
|
|||||||
Reference in New Issue
Block a user