Copying files within a a package folder

Hello there,

Within a package that I am developing now, I have a folder of assets that I would like to copy to the working directory of the user.

Is there a way to access the path of a specific package (in used in the current env)?

Something along

Pkg.path("MyPackage")
> "/some/path/MyPackage"

It’s

julia> pathof(MyPackage)

This gives you the full path to MyPackage.jl.
You can go down the path with

julia> dirname(pathof(MyPackage))
1 Like