atomsAutoloadAdd
Add one or several modules to autoload
Syntax
nbAdd = atomsAutoloadAdd(modules) nbAdd = atomsAutoloadAdd(modules, section)
Arguments
- modules
m x 1, m x 2 or m x 3 matrix of strings
1st Col. (Mandatory) 2nd Col. (Optional) 3rd Col. (Optional) Technical Name Version: If this field is empty or is not present, the most recent version is used Installed section: If this field is empty or is not present, and modules
is installed in both "user" and "allusers" sections, the section of autoload list is used.- section
This argument controls which autoload list is changed.
section
is a single-string and its value should be :"allusers"
: modules are added to the "allusers" autoload list and all users of scilab are affected."user"
: modules are added to the "user" autoload list and only the current user is affected.
If SCI/contrib is write accessible, "allusers" is the default value. Otherwise, the default value is "user".
- nbAdd
An integer : the number of modules successfully added.
Description
atomsAutoloadAdd
adds one or several modules from the
autoload system.
Examples
// Load the test repository exec("SCI/modules/atoms/tests/unit_tests/atomsTestUtils.sce", -1); repository = atomsCreateTestRepository("scene10"); atomsSetConfig("autoloadAddAfterInstall","False"); atomsInstall("toolbox_5V6","user"); atomsAutoloadList() atomsAutoloadAdd("toolbox_5V6","user"); atomsAutoloadList() atomsAutoloadDel(["toolbox_5V6"]); atomsAutoloadAdd(["toolbox_5V6" "1.0"],"user"); atomsAutoloadList() atomsAutoloadDel("toolbox_5V6"); atomsAutoloadAdd(["toolbox_5V6" "1.0" "user"],"user"); atomsAutoloadList() // Cleaning atomsRemove("toolbox_5V6","user"); atomsSetConfig("autoloadAddAfterInstall","True"); atomsRepositoryDel(repository); atomsSystemUpdate(); atomsAutoloadList()
See also
- atomsAutoloadDel — Remove one or several modules from the autoload system
- atomsAutoloadList — Get the list of modules registered to autoload
Report an issue | ||
<< atomsAutoload | Atoms | atomsAutoloadDel >> |