From 36466741d5ab69389b30c82829ac1fe743ec9357 Mon Sep 17 00:00:00 2001 From: Markus Meissner Date: Sun, 27 Sep 2020 15:20:44 +0200 Subject: [PATCH] more robust version extraction --- pynitrokey/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pynitrokey/__init__.py b/pynitrokey/__init__.py index f78e564d..e35c7bc8 100644 --- a/pynitrokey/__init__.py +++ b/pynitrokey/__init__.py @@ -13,7 +13,8 @@ import pathlib -__version__ = open(pathlib.Path(__file__).parent / "VERSION").read().strip() +__version_path__ = pathlib.Path(__file__).parent.resolve().absolute() / "VERSION" +__version__ = open(__version_path__).read().strip() del pathlib