From e8f49b7e5fcf288d8c9256b1626c5b703a97f866 Mon Sep 17 00:00:00 2001 From: Cara Salter Date: Thu, 16 Feb 2023 13:17:06 -0500 Subject: Fix check_updates Make work with new pack-lock.ini instead of old version.txt --- util.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'util.py') 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 -- cgit v1.2.3