Use the same Python interpreter for the genapi.py script as for the Waf script

This ensures we call the genapi.py script with the same Python interpreter as the Waf
build system was called. This is relevant if the used interpreter is not 'python' but e.g.
python2 or python2.6 or whatever.
This commit is contained in:
Enrico Tröger 2012-05-04 23:13:36 +02:00
parent 3d1c7e3f57
commit 9a80935835

View File

@ -319,7 +319,7 @@ def build(bld):
name = 'geanyfunctions.h',
before = ['c', 'cxx'],
cwd = '%s/plugins' % bld.path.abspath(),
rule = 'python genapi.py -q')
rule = '%s genapi.py -q' % sys.executable)
# Plugins
if bld.env['HAVE_PLUGINS'] == 1: