Skip to content

Commit ca8b6cb

Browse files
authored
Update STM32_gen_PeripheralPins.py (#217)
Protection against using python version older than python3+
1 parent 7edab2d commit ca8b6cb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

targets/TARGET_STM/tools/STM32_gen_PeripheralPins.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727
from argparse import RawTextHelpFormatter
2828
import subprocess
2929

30+
if sys.version_info[0] < 3: raise Exception("Python 3+ is required (recommended latest one)")
31+
3032
GENPINMAP_VERSION = "1.20.5"
3133

3234
ADD_DEVICE_IF = 0

0 commit comments

Comments
 (0)