get-patch-descriptionModule Manager Facilityload-moduleget-root-directoryGoTo Top

get-root-directory   name => pathname[Function]

Purpose
Return the pathname of the root directory of a root directory, a relative directory, or a module.

Package   :module-manager

Module   :module-manager

Arguments and values

name     A keyword symbol naming a root directory, a relative directory, or a module.
pathname     A pathname

Returns
The root-directory pathname of the defined directory or module.

Description
Root and relative-directory definitions are searched first. If no name directory definition is found, module definitions are searched. Root directories specify a fixed anchor directory for a tree of relative directory definitions.

See also
    define-relative-directory
    define-root-directory
    get-directory
    show-defined-directories

Examples
Return the root-directory pathname of the :gbbopen-root root directory:

  > (get-root-directory :gbbopen-root)
  #P"<install-dir>/"
  >
Return the root-directory pathname of the :gbbopen-tools relative directory:
  > (get-root-directory :gbbopen-tools)
  #P"<install-dir>/"
  >
Return the root-directory pathname of the :gbbopen-user module:
  > (get-root-directory :gbbopen-user)
  #P"<install-dir>/"
  >


The GBBopen Project


get-patch-descriptionModule Manager Facilityload-moduleget-root-directoryGoTo Top