aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/buildgen
diff options
context:
space:
mode:
authorGravatar Thomas Bechtold <tbechtold@suse.com>2018-05-20 08:25:37 +0200
committerGravatar Thomas Bechtold <tbechtold@suse.com>2018-05-20 08:34:21 +0200
commit08b626a704c801cc92fbc8e19aee6c03acd0dc78 (patch)
treedbe8398b21eaa6211d4cda1d842acb20161f1268 /tools/buildgen
parentbdbf04cde1f429787c41013071dea12c6ab2088e (diff)
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).
Diffstat (limited to 'tools/buildgen')
-rwxr-xr-xtools/buildgen/generate_projects.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/buildgen/generate_projects.py b/tools/buildgen/generate_projects.py
index bb5de9c42b..40d9095360 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')