# Pkg.dir() difference between v0.5 and v0.6

**URL:** <https://discourse.julialang.org/t/pkg-dir-difference-between-v0-5-and-v0-6/1815>\
**Category:** General Usage\
**Created:** [February 1, 2017, 10:46am UTC](https://discourse.julialang.org/t/pkg-dir-difference-between-v0-5-and-v0-6/1815 "2017-02-01T10:46:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![josefsachs](https://avatars.discourse-cdn.com/v4/letter/j/f475e1/32.png) [@josefsachs](https://discourse.julialang.org/u/josefsachs)\
**Post date:** [February 1, 2017, 10:46am UTC](https://discourse.julialang.org/t/pkg-dir-difference-between-v0-5-and-v0-6/1815/1 "2017-02-01T10:46:05Z")

</div>

What explains this difference? I don’t see anything in NEWS.md.  
Environment is Cygwin running under Windows 7.

```julia
JOSEFSACHS7548$ usr/bin/julia.exe
               _
   _ _ _(_)_ | A fresh approach to technical computing
  (_) | (_) (_) | Documentation: http://docs.julialang.org
   _ _ _| |_ __ _ | Type "?help" for help.
  | | | | | | |/ _` | |
  | | |_| | | | (_| | | Version 0.5.0 (2016-09-19 18:14 UTC)
 _/ |\ __'_|_|_|\__'_| |
|__/ | x86_64-w64-mingw32

julia> Pkg.dir()
"C:\\cygwin64\\home\\sachs\\.julia\\v0.5"

```

```julia
JOSEFSACHS7548$ usr/bin/julia.exe
               _
   _ _ _(_)_ | A fresh approach to technical computing
  (_) | (_) (_) | Documentation: http://docs.julialang.org
   _ _ _| |_ __ _ | Type "?help" for help.
  | | | | | | |/ _` | |
  | | |_| | | | (_| | | Version 0.6.0-dev.2493 (2017-01-31 18:53 UTC)
 _/ |\ __'_|_|_|\__'_| | Commit c99e12c (0 days old master)
|__/ | x86_64-w64-mingw32

julia> Pkg.dir()
"C:\\Users\\sachs\\.julia\\v0.6"

```

---

<div class="post-metadata">

**Author:** ![josefsachs](https://avatars.discourse-cdn.com/v4/letter/j/f475e1/32.png) [@josefsachs](https://discourse.julialang.org/u/josefsachs)\
**Post date:** [February 1, 2017, 5:33pm UTC](https://discourse.julialang.org/t/pkg-dir-difference-between-v0-5-and-v0-6/1815/2 "2017-02-01T17:33:44Z")

</div>

Thanks to Tony Kelman’s clue, I see this was changed in [1d561e8](https://github.com/JuliaLang/julia/commit/1d561e8ea2da54e6b0237a34790fb2b0c76083e6) (Rewrite homedir based on uv\_os\_homedir (#[19636](https://github.com/JuliaLang/julia/pull/19636)).

So, on Windows (even under Cygwin) the USERPROFILE environment variable is used, but not HOME.

I suggest that this change be noted in NEWS.md.
