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")