std-require-path


Synopsis

(std-require-path <module-name> <pathname>)

Description

Loads a module if it was not previously loaded from the specified path which may be a partial or fully qualified pathname. If a extension or directory is specified it tries to load only those,otherwise, it tries to load it from all paths from *MODULE-PATH* or the from the Acad Library path.

This is the only way to load a module which has a different filename and modulename.

Returns the upcase modulename as string or nil.

Arguments

module-name: string or symbol. Usually the filename of the lisp file in which the module is defined. Just the name without absolute path or extension is needed. Usually case insensitive, but OS dependant. This name is passed to std-load if the module was not previously loaded.

On DOS 8.3 filesystems and if the modulename is longer than 8 characters the filename to search for is truncated.

pathname: a string. A partial or fully qualified filename specifier.

Return Value

The version number of the loaded module or nil.

Side Effects

It may load a new module, which may create unpredictable side-effects, evaluating the contents of the lisp file.

Module

(std-require 'STDINIT)

Defined in STDMODUL