Skip to content
Philipp Janda edited this page Mar 16, 2015 · 1 revision

package.searchpath

The native implementation of package.searchpath in Lua 5.2 and 5.3 uses various preprocessor macros to configure the specific symbols used for the path templates in package.path/package.cpath. The compatibility implementation for Lua 5.1 is written in pure Lua and thus has no access to the preprocessor macros, so it uses the default values (; as the path separator, ? as place holder for the module name).

Clone this wiki locally