Skip to content

Commit

Permalink
Use the same Python interpreter for the genapi.py script as for the W…
Browse files Browse the repository at this point in the history
…af 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.
  • Loading branch information
eht16 committed May 4, 2012
1 parent 3d1c7e3 commit 9a80935
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wscript
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 9a80935

Please sign in to comment.