From: Apprentice Harper Date: Sat, 28 Nov 2020 16:25:54 +0000 (+0000) Subject: Don't rule out running from the command line X-Git-Url: http://git.xmof.duckdns.org/?a=commitdiff_plain;h=0e0d7d8b149dc6a1b8c921e753637d5d76b63dc1;p=DeDRM.git Don't rule out running from the command line --- diff --git a/DeDRM_plugin/kfxdedrm.py b/DeDRM_plugin/kfxdedrm.py index 4be73ea..29dc60d 100644 --- a/DeDRM_plugin/kfxdedrm.py +++ b/DeDRM_plugin/kfxdedrm.py @@ -11,7 +11,10 @@ import shutil import zipfile from io import BytesIO -from calibre_plugins.dedrm.ion import DrmIon, DrmIonVoucher +try: + from ion import DrmIon, DrmIonVoucher +except: + from calibre_plugins.dedrm.ion import DrmIon, DrmIonVoucher __license__ = 'GPL v3'