New answers tagged

3

The Autoload mechanism can be used for this. Place the package in $UserBaseDirectory/Autoload or $BaseDirectory/Autoload. However, the package must follow the standard structure, and must have a Kernel/init.m file, otherwise it won't get loaded. Also keep in mind that auto-loading of packages happens only after $UserBaseDirectory/Kernel/init.m was loaded ...


7

In order for a package in Autoload to load, it must have the file Kernel/init.m. Thus, Autoload/MyPack.m will not load. Autoload/MyPack/MyPack.m will also not load. Instead, we need to have the following structure: A package file at Autoload/MyPack/Mypack.m and an initialization file for the package at Autoload/MyPack/Kernel/init.m, containing the ...



Top 50 recent answers are included