From b10aed674f795793f20162f45cd8a1707b308718 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 2 Feb 2017 10:16:12 +0100 Subject: [PATCH] set PATH during testcase --- src/dht/Makefile.am | 2 +- src/dht/test_dht_tools.py.in | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/dht/Makefile.am b/src/dht/Makefile.am index b4c03ba60..26beb300b 100644 --- a/src/dht/Makefile.am +++ b/src/dht/Makefile.am @@ -254,7 +254,7 @@ check_SCRIPTS = \ test_dht_tools.py endif -do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g' +do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g' -e 's,[@]bindir[@],$(bindir),g' %.py: %.py.in Makefile $(do_subst) < $(srcdir)/$< > $@ diff --git a/src/dht/test_dht_tools.py.in b/src/dht/test_dht_tools.py.in index 9489d12c1..5ceabbfad 100644 --- a/src/dht/test_dht_tools.py.in +++ b/src/dht/test_dht_tools.py.in @@ -20,6 +20,8 @@ import subprocess import time import tempfile +os.environ["PATH"] = "@bindir@" + ":" + os.environ["PATH"]; + if os.name == "nt": tmp = os.getenv ("TEMP") else: -- 2.25.1