Merge pull request #659 from ma-laforge/pyplot_qtinit

Fix exception calling backend() in _initialize_backend().
This commit is contained in:
Tom Breloff 2017-01-25 11:47:31 -05:00 committed by GitHub
commit 6d38e52321

View File

@ -92,7 +92,7 @@ function _initialize_backend(::PyPlotBackend)
kw = Conda._installed_packages_dict() kw = Conda._installed_packages_dict()
if (!haskey(kw,"qt") || (qt_version=get(kw,"qt",0)[1]!=v"4.8.5")) if (!haskey(kw,"qt") || (qt_version=get(kw,"qt",0)[1]!=v"4.8.5"))
print("\n If the code has a Segmentation fault error switch to qt v4.8.5 by pasting the following code into julia: \n \n") print("\n If the code has a Segmentation fault error switch to qt v4.8.5 by pasting the following code into julia: \n \n")
add_backend_string(backend()) print(add_backend_string(PyPlotBackend()))
end end
end end
end end