diff --git a/tools/buildgen/generate_projects.py b/tools/buildgen/generate_projects.py index 8e5c6e6b2fa..2da245218f4 100755 --- a/tools/buildgen/generate_projects.py +++ b/tools/buildgen/generate_projects.py @@ -25,6 +25,10 @@ from typing import Dict, List, Union import _utils import yaml +if sys.version_info < (3, 6): + raise RuntimeError('Expected Python version > 3.6, but got %s at %s' % + (sys.version_info, sys.executable)) + PROJECT_ROOT = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..", "..") os.chdir(PROJECT_ROOT)