Skip to content

Commit

Permalink
use download instead of wget
Browse files Browse the repository at this point in the history
This works better on windows. Unzip must be installed though: 
http://sourceforge.net/projects/gnuwin32/?source=typ_redirect
Maybe use one of the Julia zip packages?
  • Loading branch information
SimonDanisch committed Dec 5, 2015
1 parent aa1b600 commit b513898
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/util.jl
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ function get_mnist_ubyte()
filenames = [k => joinpath(mnist_dir, v) for (k,v) in filenames]
if !all(isfile, values(filenames))
cd(mnist_dir) do
run(`wget http://webdocs.cs.ualberta.ca/~bx3/data/mnist.zip`)
run(`unzip -u mnist.zip`)
mnist_dir = download("http://webdocs.cs.ualberta.ca/~bx3/data/mnist.zip", "mnist.zip")
run(`unzip -u $mnist_dir`)
end
end
return filenames
Expand Down

0 comments on commit b513898

Please sign in to comment.