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

> "/some/path/MyPackage"


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