NaviServer - programmable web server
4.99  5.0

[ Main Table Of Contents | Table Of Contents | Keyword Index ]

ns_library(n) 4.99.30 naviserver "NaviServer Built-in Commands"

Name

ns_library - Get the paths to the private and shared Tcl libraries

Table Of Contents

Synopsis

Description

This command returns the path to the private and shared Tcl libraries, optionally specifying a module as well. library must either be "private" or "shared". The private library is the same as what's returned from ns_info tcllib as defined in the config .tcl at server start-up. The shared library is relative to the path specified by ns_info home, in the "modules/tcl" subdirectory. The optional module is simply concatenated to the path returned from ns_library.

COMMANDS

ns_library library ?module?

EXAMPLES

 % ns_library shared
 /home/ns/modules/tcl
 % file join [ns_info home] modules tcl
 /home/ns/modules/tcl
 % ns_library private exampleModule
 /home/ns/servers/exampleServer/tcl/exampleModule
 % file join [ns_info tcllib] exampleModule
 /home/ns/servers/exampleServer/tcl/exampleModule

See Also

nsd

Keywords

home, ns_info, server built-in, tcllib