Variable CLASS_PATH

One may assign variable CLASS_PATH in Configuration file. This variable contains path(s) to classes' directory (directories). If path to a module is relative, the module will be search for in CLASS_PATH (if CLASS_PATH is a table, rows with paths will be iterated through from bottom to top).

Example of table
CLASS_PATH:

$CLASS_PATH[^table::create{path
/classes/common
/classes/specific
}]

In this case, relative path
my/class.p will be searched for as:

/classes/specific/my/class.p
/classes/common/my/class.p



Copyright © 1997–2021 Art. Lebedev Studio | http://www.artlebedev.com Last updated: 30.03.2004