From 126e22d3e00862d86cb3759fe3eb2d2c39abaedf Mon Sep 17 00:00:00 2001 From: Tim Head Date: Thu, 11 Oct 2018 22:10:35 +0200 Subject: [PATCH] Check beginning of the string only for Julia Only uses the beginning of the string to determine which version of Python we use in Julia --- tests/julia/pyplot/verify | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/julia/pyplot/verify b/tests/julia/pyplot/verify index d906c20c..70dc3582 100755 --- a/tests/julia/pyplot/verify +++ b/tests/julia/pyplot/verify @@ -2,7 +2,7 @@ using PyPlot # Make sure we are re-using the same conda python -if PyCall.libpython != "/srv/conda/lib/libpython3.6m" +if ! startswith(PyCall.libpython, ENV["NB_PYTHON_PREFIX"] * "/lib") println("Not re-using conda python! Using " * PyCall.libpython * " instead") exit(1) end @@ -16,4 +16,3 @@ if isfile("graph.png") else exit(1) end -