$BaseDirectory
gives the base directory in which systemwide files to be loaded by the Wolfram System are conventionally placed.
Details
- $BaseDirectory returns the full name of the directory as a string.
- Typical values are:
-
C:\ProgramData\Wolfram Windows /Library/Wolfram macOS /usr/share/Wolfram Linux - The value of $BaseDirectory can be specified by setting the WOLFRAM_BASEoperating system environment variable when the Wolfram Language kernel is launched. It cannot be reset from inside the kernel.
- Typical subdirectories of $BaseDirectory are:
-
Applications Wolfram System application packages Autoload packages to be autoloaded on startup FrontEnd front end initialization files Kernel kernel initialization files Licensing license management files SystemFiles general system files - These subdirectories are, if possible, created automatically the first time the Wolfram System is run.
- Appropriate subdirectories are automatically included on $Path.
- The subdirectories of $BaseDirectory are given in $Path after the corresponding subdirectories of $UserBaseDirectory.
Examples
Basic Examples (2)
The base directory in which systemwide files are placed:
Subdirectories and files of $BaseDirectory:
Wolfram Research (2003), $BaseDirectory, Wolfram Language function, https://reference.wolfram.com/language/ref/$BaseDirectory.html (updated 2024).
Text
Wolfram Research (2003), $BaseDirectory, Wolfram Language function, https://reference.wolfram.com/language/ref/$BaseDirectory.html (updated 2024).
CMS
Wolfram Language. 2003. "$BaseDirectory." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2024. https://reference.wolfram.com/language/ref/$BaseDirectory.html.
APA
Wolfram Language. (2003). $BaseDirectory. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/$BaseDirectory.html