summaryrefslogtreecommitdiffstats
path: root/DeDRM_plugin/kfxdedrm.py
diff options
context:
space:
mode:
authorNoDRM <[email protected]>2021-12-29 11:36:59 +0100
committerNoDRM <[email protected]>2021-12-29 11:39:48 +0100
commitb11aadcca6e80621c421a644ec1cd305c2b0a479 (patch)
tree3b1c0b15e9c71d52d2fc9b67d3a167c3503871e5 /DeDRM_plugin/kfxdedrm.py
parentdbf4b5402614d2f714559f91e7b7d414efa892a5 (diff)
Bugfixes in standalone code for Calibre < 5 / Python 2
Diffstat (limited to 'DeDRM_plugin/kfxdedrm.py')
-rw-r--r--DeDRM_plugin/kfxdedrm.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/DeDRM_plugin/kfxdedrm.py b/DeDRM_plugin/kfxdedrm.py
index 0674d63..cec764c 100644
--- a/DeDRM_plugin/kfxdedrm.py
+++ b/DeDRM_plugin/kfxdedrm.py
@@ -15,8 +15,9 @@ import zipfile
from io import BytesIO
-# Calibre stuff - so we can import from our ZIP without absolute module name
-sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
+
+#@@CALIBRE_COMPAT_CODE@@
+
from ion import DrmIon, DrmIonVoucher