Skip to content

__file_in_loadpath__

builtin · libnexusinterp/corefcn/utils-proprietary.cc

: fname = __file_in_loadpath__ (file)
: fname = __file_in_loadpath__ (file, "all")

Find a regular file along the load path (the current directory first).

file is a string or a cell array of strings tried in order. The result is the full name of the first match, or an empty string; with "all" it is a cell column of every match.