From 304cbd991a84f981d160bdaeca7cdf8e762ba5cd Mon Sep 17 00:00:00 2001 From: Jan Magnusson Date: Sun, 26 Aug 2018 11:50:28 +0200 Subject: [PATCH] improve docstring of pathof (#28817) * improve docstring of pathof --- base/loading.jl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/base/loading.jl b/base/loading.jl index f55f75498d90e..18a8765d68480 100644 --- a/base/loading.jl +++ b/base/loading.jl @@ -254,6 +254,9 @@ locate_package(::Nothing) = nothing Return the path of `m.jl` file that was used to `import` module `m`, or `nothing` if `m` was not imported from a package. + +Use [`dirname`](@ref) to get the directory part and [`basename`](@ref) +to get the file name part of the path. """ function pathof(m::Module) pkgid = get(Base.module_keys, m, nothing)