This requires me to be calling from within the package, it doesn’t work outside the package.
How about some way of determining the package path that does not require the import
statement, just a simple Pkg.dir
command that uses the Manifest
to determine if the name of the package is unique, and if the name is unique, return the only path that is possible. Otherwise, if there are multiple choices, give a multiple choice menu in the REPL using TerminalMenus
, for example… that is one solution.
As I understand it, calling import
also loads the package, precompiles, etc? I don’t want that, only the dir
.