From 2bab4d4b0dc80c57c519eab1ba1160ecff0994a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Holger=20M=C3=BCller?= Date: Wed, 15 Mar 2023 12:06:13 +0100 Subject: [PATCH] try to get version in about --- src/NanoVNASaver/About.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/NanoVNASaver/About.py b/src/NanoVNASaver/About.py index 50b2be4..5fc88cb 100644 --- a/src/NanoVNASaver/About.py +++ b/src/NanoVNASaver/About.py @@ -18,7 +18,10 @@ # along with this program. If not, see . from setuptools_scm import get_version -version = get_version() # root='.', relative_to=__file__) +try: + version = get_version(root='..', relative_to=__file__) +except LookupError: + from NanoVNASaver._version import version VERSION_URL = ( "https://raw.githubusercontent.com/"