aboutsummaryrefslogtreecommitdiff
path: root/releng/version.py
diff options
context:
space:
mode:
Diffstat (limited to 'releng/version.py')
-rw-r--r--releng/version.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/releng/version.py b/releng/version.py
new file mode 100644
index 000000000..47ef23504
--- /dev/null
+++ b/releng/version.py
@@ -0,0 +1,6 @@
+import json
+
+version_json = json.load(open('version.json'))
+VERSION = version_json['version']
+MAJOR = '.'.join(VERSION.split('.')[:2])
+RELEASE_NAME = version_json['release_name']