package.cpath

Search path used for loading DLLs using the "require" function

Prototype

package.cpath

Description

This is a string containing the search path used for loading DLLs when using the "require" function. Default values are:

.\?.dll;!\?.dll;!\loadall.dll
In the above, the package name (eg. "socket") will replace the "?" characters and the current executable pathname (eg. "c:\mushclient") will replace the "!" characters.

Lua functions

Topics