WolframLang: Search Paths for Loading File

By Xah Lee. Date: .

List of Search Paths for Loading Files

$Path is a list of directories that Get uses to find file.

By default, $Path contains the current dir (the dot .). The current dir's value can be found by Directory[]. However, the current dir's value is not the current running file's dir.

$Path also includes many subdirectories of $UserBaseDirectory. 〔see WolframLang: Init Dir, Library Dir

(* sample value *)

$Path

(*
{
c:\Program Files\Wolfram Research\Wolfram Desktop\14.0\SystemFiles\Links,
C:\Users\xah\AppData\Roaming\WolframDesktop\Kernel,
C:\Users\xah\AppData\Roaming\WolframDesktop\Autoload,
C:\Users\xah\AppData\Roaming\WolframDesktop\Applications,
C:\ProgramData\WolframDesktop\Kernel,
C:\ProgramData\WolframDesktop\Autoload,
C:\ProgramData\WolframDesktop\Applications,
.,
C:\Users\xah,
c:\Program Files\Wolfram Research\Wolfram Desktop\14.0\AddOns\Packages,
c:\Program Files\Wolfram Research\Wolfram Desktop\14.0\SystemFiles\Autoload,
c:\Program Files\Wolfram Research\Wolfram Desktop\14.0\AddOns\Autoload,
c:\Program Files\Wolfram Research\Wolfram Desktop\14.0\AddOns\Applications,
c:\Program Files\Wolfram Research\Wolfram Desktop\14.0\AddOns\ExtraPackages,
c:\Program Files\Wolfram Research\Wolfram Desktop\14.0\SystemFiles\Kernel\Packages,
c:\Program Files\Wolfram Research\Wolfram Desktop\14.0\Documentation\English\System,
c:\Program Files\Wolfram Research\Wolfram Desktop\14.0\SystemFiles\Data\ICC
}

*)

WolframLang, Package, Load File