Skip to content

Commit

Permalink
dont download by default
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonDanisch committed Oct 5, 2018
1 parent f5de5f5 commit ee4fc28
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions deps/build.jl
@@ -1,16 +1,13 @@

#TODO: download https://cdn.plot.ly/plotly-latest.min.js to deps/ if it doesn't exist
file_path = ""
if get(ENV, "PLOTS_HOST_DEPENDENCY_LOCAL", "true") == "true"
if get(ENV, "PLOTS_HOST_DEPENDENCY_LOCAL", "false") == "true"
global file_path
local_fn = joinpath(dirname(@__FILE__), "plotly-latest.min.js")
if !isfile(local_fn)
@info("Cannot find deps/plotly-latest.min.js... downloading latest version.")
download("https://cdn.plot.ly/plotly-latest.min.js", local_fn)
@show local_fn isfile(local_fn)
if isfile(local_fn)
file_path = local_fn
end
isfile(local_fn) && (file_path = local_fn)
else
file_path = local_fn
end
Expand Down

0 comments on commit ee4fc28

Please sign in to comment.