aboutsummaryrefslogtreecommitdiffstats
path: root/lang/python/tests
diff options
context:
space:
mode:
Diffstat (limited to 'lang/python/tests')
-rw-r--r--lang/python/tests/run-tests.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lang/python/tests/run-tests.py b/lang/python/tests/run-tests.py
index 9e2fb78c..f236712f 100644
--- a/lang/python/tests/run-tests.py
+++ b/lang/python/tests/run-tests.py
@@ -70,8 +70,8 @@ for interpreter in args.interpreters:
[interpreter, "-c", "import sys; print('{0}.{1}'.format(sys.version_info[0], sys.version_info[1]))"]).strip().decode()
pattern = os.path.join(args.builddir, "..",
- "python{0}-gpg".format(version),
- "lib*"+version)
+ "{0}-gpg".format(os.path.basename(interpreter)),
+ "lib*")
builddirs = glob.glob(pattern)
if len(builddirs) == 0:
sys.exit("Build directory matching {0!r} not found.".format(pattern))