aboutsummaryrefslogtreecommitdiff
path: root/util.py
diff options
context:
space:
mode:
Diffstat (limited to 'util.py')
-rw-r--r--util.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/util.py b/util.py
index 0c5a134..64632f2 100644
--- a/util.py
+++ b/util.py
@@ -310,6 +310,12 @@ def firefox():
return Firefox(executable_path='../../geckodriver', options=options)
return Firefox(options=options)
+def get_version_from_file(filename="pack-lock.ini"):
+ pack_lock = RawConfigParser()
+ pack_lock.read('pack-lock.ini')
+ return pack_lock['global']['pack_version']
+
+
# Configuration is automatically loaded from pack.ini and local-config.ini,
# and made accessible here as a global