diff --git a/NanoVNASaver/NanoVNASaver.py b/NanoVNASaver/NanoVNASaver.py
index 3dade28..bcb166e 100644
--- a/NanoVNASaver/NanoVNASaver.py
+++ b/NanoVNASaver/NanoVNASaver.py
@@ -30,6 +30,7 @@ from .Calibration import CalibrationWindow, Calibration
from .Marker import Marker
from .SweepWorker import SweepWorker
from .Touchstone import Touchstone
+from .about import version as ver
Datapoint = collections.namedtuple('Datapoint', 'freq re im')
@@ -38,7 +39,7 @@ PID = 22336
class NanoVNASaver(QtWidgets.QWidget):
- version = "0.0.9"
+ version = ver
def __init__(self):
super().__init__()
diff --git a/NanoVNASaver/about.py b/NanoVNASaver/about.py
new file mode 100644
index 0000000..3e29f93
--- /dev/null
+++ b/NanoVNASaver/about.py
@@ -0,0 +1,18 @@
+# NanoVNASaver - a python program to view and export Touchstone data from a NanoVNA
+# Copyright (C) 2019. Rune B. Broberg
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see .
+
+version = '0.0.9'
+
diff --git a/setup.py b/setup.py
index fb58ce5..3a4b50e 100644
--- a/setup.py
+++ b/setup.py
@@ -15,7 +15,8 @@
# along with this program. If not, see .
import sys
-from NanoVNASaver.NanoVNASaver import NanoVNASaver
+from NanoVNASaver.about import version
+
if sys.version_info < (3, 7):
print("You need at least Python 3.7 for this application!")
if sys.version_info[0] < 3:
@@ -35,7 +36,7 @@ with open("README.md", "r") as fh:
setup(
name='NanoVNASaver',
url='https://github.com/mihtjel/nanovna-saver',
- version=NanoVNASaver.version,
+ version=version,
author='Rune B. Broberg',
author_email='',
packages=find_packages(),