From 08b626a704c801cc92fbc8e19aee6c03acd0dc78 Mon Sep 17 00:00:00 2001 From: Thomas Bechtold Date: Sun, 20 May 2018 08:25:37 +0200 Subject: [PATCH] Don't hardcode python2.7 in generate_projects.py script Instead, use the same python interpreter for calling the mako renderer that is currently use (which is sys.executable). This is useful when trying to run generate_projects.py in a python3 only environment (which is still broken but this is a first step). --- tools/buildgen/generate_projects.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/buildgen/generate_projects.py b/tools/buildgen/generate_projects.py index bb5de9c42b1..40d90953606 100755 --- a/tools/buildgen/generate_projects.py +++ b/tools/buildgen/generate_projects.py @@ -52,7 +52,7 @@ if not templates: templates.append(os.path.join(root, f)) pre_jobs = [] -base_cmd = ['python2.7', 'tools/buildgen/mako_renderer.py'] +base_cmd = [sys.executable, 'tools/buildgen/mako_renderer.py'] cmd = base_cmd[:] for plugin in plugins: cmd.append('-p')