Arbortext Command Language > set Command Options > set loadpath
  
set loadpath
set loadpath=d1 [:dn]
The loadpath option lets you specify the list of directories to search when loading a package given in the require command, the require built-in function, the source command, or the JavaScript load function. A path list determines the directories to search. The default is initialized from the value of the APTLOADPATH environment variable if set, otherwise it is the packages subdirectory of Arbortext-path, the main subdirectory of packages, and the tools subdirectory of packages.
You must include the system default packages in the load path to ensure proper operation of Arbortext Editor.
If there is an Arbortext-path\custom\scripts subdirectory at startup, the \custom\scripts is automatically prepended to the load path for ACL, JavaScript, JScript, and VBScript files. Putting these supported script file types in the \custom\scripts subdirectory makes them automatically available, avoiding manual steps to add them to the path.
The path list is also automatically prepended to include any scripts added to the Arbortext-path\custom\scripts directory if you include %D in the path.
Example:
append_load_path("/packages")
Examples
set loadpath="c:\\Program Files\\Arbortext\\editor\\packages;
c:\\Arbortext\\editor\\packages\\main"
Multiple directories are delimited with semicolons, and the entire set must be enclosed in quotation marks.
You can use the append_load_path function to update the script load paths.
Related Topics
append_load_path function
require command
require function
Symbolic parameters in path list variables