Delay ghostscript import

pull/198/head
Vinayak Mehta 2021-07-04 19:27:29 +05:30
parent 0c20cb0be8
commit e76a7a7c26
No known key found for this signature in database
GPG Key ID: 2DE013537A15A9A4
1 changed files with 2 additions and 2 deletions

View File

@ -4,8 +4,6 @@ import sys
import ctypes
from ctypes.util import find_library
import ghostscript
def installed_posix():
library = find_library("gs")
@ -35,6 +33,8 @@ class GhostscriptBackend(object):
"here: https://camelot-py.readthedocs.io/en/master/user/install-deps.html"
)
import ghostscript
gs_command = [
"gs",
"-q",