Add one or several modules to autoload
nbAdd = atomsAutoloadAdd(modules) nbAdd = atomsAutoloadAdd(modules, section)
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. |
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".
An integer : the number of modules successfully added.
atomsAutoloadAdd adds one or several modules from the
autoload system.
// 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() | ![]() | ![]() |