Skip to content

__dir_in_loadpath__

builtin · libnexusinterp/corefcn/utils-proprietary.cc

: dname = __dir_in_loadpath__ (dir)
: dname = __dir_in_loadpath__ (dir, "all")

Find a directory along the load path.

The result is the full name of the first load path entry whose trailing components equal dir, or an empty string. A directory given by an absolute name, or by a name starting with ./, is returned as written when it exists. With "all" the result is a cell column of every match.