diff options
author | Cara Salter <cara@devcara.com> | 2023-02-16 13:17:06 -0500 |
---|---|---|
committer | Cara Salter <cara@devcara.com> | 2023-02-16 13:17:43 -0500 |
commit | e8f49b7e5fcf288d8c9256b1626c5b703a97f866 (patch) | |
tree | 963f0d50b6eec76d72bb12e736d038e89813be76 /util.py | |
parent | c272478b4e63c24702e2d968dc8c6d4dbe2e225a (diff) | |
download | modpackman-e8f49b7e5fcf288d8c9256b1626c5b703a97f866.tar.gz modpackman-e8f49b7e5fcf288d8c9256b1626c5b703a97f866.zip |
Fix check_updates
Make work with new pack-lock.ini instead of old version.txt
Diffstat (limited to 'util.py')
-rw-r--r-- | util.py | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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 |