Add a raise for generate_projects if Python is too old (#29432)

* Add a raise for generate_projects if Python is too old

* Update the comment

* Resolve the YAPF difference between local 0.30 and kokoro's 0.30

* YAPF
reviewable/pr29111/r15
Lidi Zheng 3 years ago committed by GitHub
parent 9a363dbf96
commit b3ded99cd4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      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)

Loading…
Cancel
Save