From d905d66f915882d1b903a4d728b88494faf1e76d Mon Sep 17 00:00:00 2001 From: Peter Simon Date: Mon, 27 Apr 2015 07:31:59 -0700 Subject: [PATCH] Correct description of Pkg.dir() return value --- doc/stdlib/pkg.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/stdlib/pkg.rst b/doc/stdlib/pkg.rst index dfc9fb1fde4b4..cb3eea98567f0 100644 --- a/doc/stdlib/pkg.rst +++ b/doc/stdlib/pkg.rst @@ -10,8 +10,9 @@ to use them, you'll need to prefix each function call with an explicit ``Pkg.``, .. function:: dir() -> AbstractString Returns the absolute path of the package directory. - This defaults to ``joinpath(homedir(),".julia")`` on all platforms (i.e. ``~/.julia`` in UNIX shell syntax). - If the ``JULIA_PKGDIR`` environment variable is set, that path is used instead. + This defaults to ``joinpath(homedir(),".julia","v$(VERSION.major).$(VERSION.minor)")`` on all platforms + (i.e. ``~/.julia/v0.4`` in UNIX shell syntax). If the ``JULIA_PKGDIR`` environment variable is set, then + that path is used in the returned value as ``joinpath(ENV["JULIA_PKGDIR"],"v$(VERSION.major).$(VERSION.minor)")``. If ``JULIA_PKGDIR`` is a relative path, it is interpreted relative to whatever the current working directory is. .. function:: dir(names...) -> AbstractString