WolframLang: Init Dir, Library Dir

By Xah Lee. Date: .

User's Library Dir

$UserBaseDirectory

Directory path for user files.

On Microsoft Windows, it's typically at one of the following, depending on which product you have:

  • "~/AppData/Roaming/Mathematica"
  • "~/AppData/Roaming/WolframDesktop"
  • "~/AppData/Roaming/Wolfram"

on macOS, typically at:

  • ~/Library/Mathematica

on linux, typically at:

  • ~/.Mathematica

it typically includes the following subdirectories:

  • ApplicationData
  • Applications → for typical packages.
  • Autoload → auto load. aka init files.
  • FrontEnd
  • Kernel
  • Knowledgebase
  • Licensing
  • Logs
  • Paclets
  • SystemFiles

most of these dirs are automatically added to the file loading search path, i.e. $Path. 〔see WolframLang: Search Paths for Loading File

$UserBaseDirectory

WolframLang, Package, Load File