Path of this package?

When I was missing this feature, I was thinking of something like splitting off the directory of the result of Base.find_package, or equivalently Base.pathof without loading the module.

But now that I have used 1.0 a bit more, I don’t miss Pkg.dir that much. I think that removing it was the right decision, since it served as a basis for various other use cases, all of which have better solutions. Namely,

  1. testing, coverage, and docs generation in .travis.yml and other CI servises (solution: no need to have the directory directly, and one can always use projects),
  2. locating files relative to source (solution: use @__DIR__ as a basis for this, ideally via a function),
  3. just want to browse the files, eg for reading the source (solution: import, then pathof, or pkg> dev for editing as suggested above).