Skip to content

Commit

Permalink
Modify user home properly on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
omus committed Jun 6, 2017
1 parent 7aef986 commit 33bb3ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/pkg.jl
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,7 @@ temp_pkg_dir() do
mkdir(home)
write(joinpath(home, ".juliarc.jl"), "const JULIA_RC_LOADED = true")

withenv("HOME" => home) do
withenv((is_windows() ? "USERPROFILE" : "HOME") => home) do
code = "Pkg.build(\"$package\")"
err = capture_stderr() do
run(`$(Base.julia_cmd()) --startup-file=no -e $code`)
Expand Down

0 comments on commit 33bb3ce

Please sign in to comment.