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/"