searchModulesPaths

searchModulesPaths

This setting is available in Profound.js versions 7.14.0 and newer. It is not used for locating Profound.js modules or files when running an application in a Workspace. In that case, only modules and files within the Workspace directory or a subdirectory can be used, and paths within a subdirectory must be specified relative to the Workspace directory. If a program in a Workspace is called via PJSCALL or a proxy program, the IBM i library list is used to search for modules and files.

If using a subdirectory in a workspace, the workspace name and the nested directories must be added to either searchModulesPaths or the pathlist for the file to be found. For example, add an entry such as /workspaceName/folder1/folder2/.

Description

A list of paths that Profound.js searches for modules only. Unlike pathlist, this setting is not used to set up library lists for IBM i jobs. Entries in this list are searched before entries in pathlist.

Use it in situations where adding entries to the pathlist would be undesirable – for example, to find modules without having Profound.js attempt to add those entries to IBM i library lists.

Usage

The option is specified as an array of directories to search:

searchModulesPaths: [ "dir1", "dir1/subdir1", "dir2" ]

Like pathlist, searchModulesPaths is used by APIs such as pjs.call() when a module name is unqualified. Unlike pathlist, no IBM i libraries should be specified here.

For information on how to modify this setting, see Configuration File.