From 82a698edf65630b203f67b7b03acb2fc20f93836 Mon Sep 17 00:00:00 2001 From: NoDRM Date: Fri, 18 Mar 2022 17:36:55 +0100 Subject: [PATCH] Debugging for __version issue --- DeDRM_plugin/__init__.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/DeDRM_plugin/__init__.py b/DeDRM_plugin/__init__.py index 83b4b7a..9f0fc34 100644 --- a/DeDRM_plugin/__init__.py +++ b/DeDRM_plugin/__init__.py @@ -94,7 +94,17 @@ import traceback #@@CALIBRE_COMPAT_CODE@@ -import __version +try: + import __version +except ModuleNotFoundError: + print("#############################") + print("__version not found, path is:") + print(sys.path) + print("I'm at:") + print(__file__) + print("#############################") + raise + class DeDRMError(Exception): pass