Ensure env.PYTHON is set (regression)

This commit is contained in:
Thomas Nagy 2017-04-13 21:09:43 +02:00
parent 6d19d4211d
commit 6702434df4
No known key found for this signature in database
GPG Key ID: 49B4C67C05277AAA
1 changed files with 1 additions and 1 deletions

View File

@ -591,7 +591,7 @@ def configure(conf):
if getattr(Options.options, 'nopycache', None):
v.NOPYCACHE=Options.options.nopycache
conf.find_program('python', var='PYTHON', value=getattr(Options.options, 'python', sys.executable))
conf.find_program('python', var='PYTHON', value=getattr(Options.options, 'python', None) or sys.executable)
v.PYFLAGS = ''
v.PYFLAGS_OPT = '-O'