mirror of
https://github.com/Leseratte10/acsm-calibre-plugin
synced 2024-12-25 09:58:30 +01:00
feat: make libcrypto and libssl paths overrideable
Some checks are pending
Build binaries / build (push) Waiting to run
Build binaries / test-python3 (3.10) (push) Waiting to run
Build binaries / test-python3 (3.11) (push) Waiting to run
Build binaries / test-python3 (3.12) (push) Waiting to run
Build binaries / test-python3 (3.6) (push) Waiting to run
Build binaries / test-python3 (3.7) (push) Waiting to run
Build binaries / test-python3 (3.8) (push) Waiting to run
Build binaries / test-python3 (3.9) (push) Waiting to run
Build binaries / test-python2 (push) Waiting to run
Build binaries / test-ubuntu-2004 (push) Waiting to run
Build binaries / test-ubuntu-2204-oscrypto (push) Waiting to run
Build binaries / test-ubuntu-2204-oscrypto-fork (push) Waiting to run
Build binaries / test-windows (push) Waiting to run
Build binaries / test-mac (push) Waiting to run
Some checks are pending
Build binaries / build (push) Waiting to run
Build binaries / test-python3 (3.10) (push) Waiting to run
Build binaries / test-python3 (3.11) (push) Waiting to run
Build binaries / test-python3 (3.12) (push) Waiting to run
Build binaries / test-python3 (3.6) (push) Waiting to run
Build binaries / test-python3 (3.7) (push) Waiting to run
Build binaries / test-python3 (3.8) (push) Waiting to run
Build binaries / test-python3 (3.9) (push) Waiting to run
Build binaries / test-python2 (push) Waiting to run
Build binaries / test-ubuntu-2004 (push) Waiting to run
Build binaries / test-ubuntu-2204-oscrypto (push) Waiting to run
Build binaries / test-ubuntu-2204-oscrypto-fork (push) Waiting to run
Build binaries / test-windows (push) Waiting to run
Build binaries / test-mac (push) Waiting to run
It is necessary to properly use this plugin on NixOS and also allows overriding for testing & other purposes.
This commit is contained in:
parent
27bd9531c4
commit
25a395f128
1 changed files with 14 additions and 0 deletions
|
@ -285,6 +285,20 @@ class ACSMInput(FileTypePlugin):
|
|||
|
||||
# Okay, now all the modules are available, import the Adobe modules.
|
||||
|
||||
# Crucial to import first, as libadobe imports oscrypto as well
|
||||
|
||||
libcrypto_path = os.environ["ACSM_LIBCRYPTO"]
|
||||
libssl_path = os.environ["ACSM_LIBSSL"]
|
||||
|
||||
if os.path.exists(libcrypto_path) and os.path.exists(libssl_path):
|
||||
import oscrypto
|
||||
|
||||
oscrypto.use_openssl(
|
||||
libcrypto_path = libcrypto_path,
|
||||
libssl_path = libssl_path,
|
||||
)
|
||||
|
||||
|
||||
from libadobe import createDeviceKeyFile, update_account_path, sendHTTPRequest
|
||||
from libadobeAccount import createDeviceFile, createUser, signIn, activateDevice
|
||||
from libadobeFulfill import buildRights, fulfill
|
||||
|
|
Loading…
Reference in a new issue