How to get the path to module dir?

joinpath(dirname(pathof(MyModule)), "foo.txt")