Calling Pkg.activate
(in Julia 1.5.3) seems to change the output of pkgdir
.
My situation is as follows.
Two versions of a package X
, say, are installed, a released one in ~/.julia/packages
and a develop version in another place.
I load the latter version into my Julia session, and pkgdir(X)
shows its path. Fine.
Now I call Pkg.activate
with some directory path.
Afterwards, the result of pkgdir(X)
depends on whether or not the activated directory contains a file Project.toml
:
If not then pkgdir(X)
returns the same as before.
But if yes then the path in ~/.julia/packages
is returned.
Is this behaviour intended?
If yes then what is the recommended way to find the location of a loaded package?