scripts: sd_fusing: Check the minimum required Python version 75/319075/5
authorJaehoon Chung <jh80.chung@samsung.com>
Mon, 14 Oct 2024 23:59:48 +0000 (08:59 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Tue, 15 Oct 2024 02:00:22 +0000 (02:00 +0000)
commit03893a7ca6968b6bb07776c1e34d9e7bc98bc2ec
tree1110a892f2e6d4cc471ad570f95a09385406dcda
parent90e2c2cfeb7737d50a82112a4d140a32fd918ab1
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