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
pull/429/head
Tim Head 2018-10-11 22:10:35 +02:00
rodzic a161b0925a
commit 126e22d3e0
1 zmienionych plików z 1 dodań i 2 usunięć

Wyświetl plik

@ -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