| Prev | Next | Start of Chapter | End of Chapter | Contents | Glossary | Index | Comments | (28 out of 48)

module-search-path

Specifies the search path for locating modular knowledge base (KB) files.

Platforms

All platforms

Syntax

	-module-search-path search-dir-path 
or
-module-search-path "search-dir-path [search-dir-path] ... "
search-dir-path: A fully qualified directory path that names a location where G2 searches for a modular KB file that contains a directly required module.

Equivalent Environment Variable

Under UNIX and VMS, the syntax is the same as for module-search-path.


Note: Under Windows, do not surround a series of search-dir-paths with quotes, or G2 will be unable to read the pathnames.

Description

This option specifies a list of one or more directories that G2 searches to locate KB files that contain directly required modules. G2 searches this list of directories in the order in which they appear if it cannot find a directly required module's KB file in the directory that contains the top-level module's KB file.

Previous versions of G2 required that the KB file for a top-level module and the KB files for its directly required modules reside in the same operating-system directory. By default, this version of G2 still searches in this manner for the KB files of directly required modules.

If you specify more than one directory, enclose the list of directories in double quotes. Use a space character to separate the directory paths in the list.

For more information about using a module search path and the -module-search-path option, see the chapter on Modules in the G2 Reference Manual.

Example

This command starts a new G2 process and declares two directory paths in the module search path:

g2 -module-search-path "/home/kmm/kbs /home/project/kbs" 
| Prev | Next | Start of Chapter | End of Chapter | Contents | Glossary | Index | Comments | (28 out of 48)

Copyright © 1997 Gensym Corporation, Inc.