Added Python version check and note.

Signed-off-by: dfirfpi <francesco.picasso@gmail.com>
This commit is contained in:
dfirfpi 2020-04-06 15:50:39 +02:00
parent 0277282052
commit a9afecd766
No known key found for this signature in database
GPG Key ID: EC61291E5446B028

View File

@ -4,12 +4,15 @@
# Huawei KoBackup backups decryptor. # Huawei KoBackup backups decryptor.
# #
# Version History # Version History
# - 20200406: added Python minor version check and note (thanks @lp4n6)
# - 2020test: rewritten to handle v9 and v10 backups # - 2020test: rewritten to handle v9 and v10 backups
# - 20200107: merged pull by @lp4n6, fixed current version # - 20200107: merged pull by @lp4n6, fixed current version
# - 20191113: fixed double folder creation error # - 20191113: fixed double folder creation error
# - 20190729: first public release # - 20190729: first public release
# - 20190729: first public release # - 20190729: first public release
# #
# Note: it needs Python version >= 3.7
#
# Released under MIT License # Released under MIT License
# #
# Copyright (c) 2019 Francesco "dfirfpi" Picasso, Reality Net System Solutions # Copyright (c) 2019 Francesco "dfirfpi" Picasso, Reality Net System Solutions
@ -881,6 +884,8 @@ if __name__ == '__main__':
if sys.version_info[0] < 3: if sys.version_info[0] < 3:
sys.exit('Python 3 or a more recent version is required.') sys.exit('Python 3 or a more recent version is required.')
elif sys.version_info[1] < 7:
sys.exit('Python 3.7 or a more recent version is required.')
description = 'Huawei KoBackup decryptor version {}'.format(VERSION) description = 'Huawei KoBackup decryptor version {}'.format(VERSION)
parser = argparse.ArgumentParser(description=description) parser = argparse.ArgumentParser(description=description)