another Pkg.dir -> dirname(@__FILE__) replacement

ref #425
This commit is contained in:
Tony Kelman 2016-08-12 02:46:33 -07:00 committed by GitHub
parent 90aba32ca5
commit ca062c3ce2

View File

@ -52,7 +52,7 @@ function _initialize_backend(::PlotlyBackend; kw...)
import JSON
JSON._print(io::IO, state::JSON.State, dt::Union{Date,DateTime}) = print(io, '"', dt, '"')
_js_path = Pkg.dir("Plots", "deps", "plotly-latest.min.js")
_js_path = joinpath(dirname(@__FILE__), "..", "..", "deps", "plotly-latest.min.js")
_js_code = open(readstring, _js_path, "r")
# borrowed from https://github.com/plotly/plotly.py/blob/2594076e29584ede2d09f2aa40a8a195b3f3fc66/plotly/offline/offline.py#L64-L71 c/o @spencerlyon2