Delay ghostscript import
parent
0c20cb0be8
commit
e76a7a7c26
|
|
@ -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",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue