From d2d664a69b40878d9201f6b44411f3f678b8fbfe Mon Sep 17 00:00:00 2001 From: Diego Herranz Date: Wed, 17 Jun 2020 20:49:06 +0100 Subject: [PATCH] lv_conf_checker.py: change requirement of python 3.6 to >=3.6 Many current OSes ship newer versions (e.g. 3.8) and they work OK for this, so I don't think 3.6 is required specifically. Versions older than 3.6 wouldn't work, though, since f-strings are used. --- scripts/lv_conf_checker.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/lv_conf_checker.py b/scripts/lv_conf_checker.py index 709d68108..6823f4e55 100755 --- a/scripts/lv_conf_checker.py +++ b/scripts/lv_conf_checker.py @@ -1,12 +1,17 @@ -#!/usr/bin/env python3.6 +#!/usr/bin/env python3 ''' Generates a checker file for lv_conf.h from lv_conf_templ.h define all the not defined values ''' +import sys import re +if sys.version_info < (3,6,0): + print("Python >=3.6 is required", file=sys.stderr) + exit(1) + fin = open("../lv_conf_template.h", "r") fout = open("../src/lv_conf_internal.h", "w")