Module pkgpath

Utility functions for package.

Note: This module is not part of public API!

Functions

fhs_path (prefix, lua_ver, lib_ext, lua_ext) Creates standard Lua package path for pure Lua modules and optionally native modules.

Fields

dir_sep The directory separator string.
path_sep The character that separates templates in a path.
path_mark The string that marks the substitution points in a template.


Functions

fhs_path (prefix, lua_ver, lib_ext, lua_ext)
Creates standard Lua package path for pure Lua modules and optionally native modules.

Parameters:

  • prefix string The directory prefix for the path (default: "").
  • lua_ver optional string Lua API version (e.g. "5.3"). Defaults to version of this process' Lua.
  • lib_ext optional string File extension of native libraries. If not specified, then path for native libraries will be omitted.
  • lua_ext optional string File extension for Lua files (default: "lua").

Returns:

    string Lua package path.

Fields

dir_sep
The directory separator string.
path_sep
The character that separates templates in a path.
path_mark
The string that marks the substitution points in a template.
generated by LDoc 1.4.6