scripts: sd_fusing: Check the minimum required Python version
authorJaehoon Chung <jh80.chung@samsung.com>
Mon, 14 Oct 2024 23:59:48 +0000 (08:59 +0900)
committerJaehoon Chung <jh80.chung@samsung.com>
Mon, 28 Oct 2024 11:28:47 +0000 (20:28 +0900)
commitc4727c19da38b9cd202eca52c5766ab6d77b22af
tree4a21f7e69f6a62c26d0f3be18644b7a80936d645
parent7022342a9721a8673b49163d0224ce27514c1e03
scripts: sd_fusing: Check the minimum required Python version

"extend" of action was added since python3.8.
If python version is lower than 3.8, it will be occurred the error like below.

Traceback (most recent call last):
  File "./scripts/tizen/sd_fusing.py", line 1375, in <module>
    help="binary to flash, may be used multiple times")
  File "/usr/local/lib/python3.7/argparse.py", line 1358, in add_argument
    raise ValueError('unknown action "%s"' % (action_class,))
ValueError: unknown action "extend"

Refer to Python Doc:
3.7 - https://docs.python.org/3.7/library/argparse.html#action
3.8 - https://docs.python.org/3.8/library/argparse.html#action

Change-Id: I8d9deafcddbe67f80adc310d01f22891a2d802ae
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
scripts/tizen/sd_fusing.py