Next: component-library-search, Previous: Component library setup, Up: Component library setup [Contents][Index]

#### 5.15.1.1 component-library

The function `component-library` defines a directory containing symbol files as a component resource. You should use it as follows:

    (component-library path)

or

    (component-library path name)

path is a path to the directory you want to add as a component resource. Environment variables in path are expanded. Using this function is convenient if you want each of your library to have a unique descriptive name. It can be specified with the second argument name. The name is optional, if it is omitted, path is used instead. The name will be displayed in the ‘`Select component`’ window of `lepton-schematic`. Obviously, it is useless for CLI Lepton tools.