summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Brossier <piem@debian.org>2022-06-30 22:35:01 +0200
committerIOhannes m zmölnig (Debian/GNU) <umlaeute@debian.org>2022-06-30 22:35:01 +0200
commit396eb66b664672828b176207abe323c66979820f (patch)
treec12ab8853d2abe012955a615df0322701b3a29b5
parentf1b794fc9992e121056dc06c82a890fa34e684c0 (diff)
use current interpreter to create test sound files
Forwarded: not-needed Last-Update: 2020-01-02 This patch ensures the current interpreter is used to run create_tests_source. Gbp-Pq: Name wscript_py3.patch
-rw-r--r--tests/wscript_build3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/wscript_build b/tests/wscript_build
index c99a051..c0325ea 100644
--- a/tests/wscript_build
+++ b/tests/wscript_build
@@ -1,5 +1,6 @@
# vim:set syntax=python:
+import sys
import os.path
uselib = ['aubio']
@@ -13,7 +14,7 @@ test_sound_abspath = bld.path.get_bld().make_node(test_sound_target)
test_sound_abspath = str(test_sound_abspath).replace('\\', '\\\\')
b = bld(name='create_tests_source',
- rule='python ${SRC} ${TGT}',
+ rule=sys.executable + ' ${SRC} ${TGT}',
source='create_tests_source.py',
target=test_sound_target)
# use post() to create the task, keep a reference to it