I have a program in Lua. This is the structure of the files:
|Programa |-Main.lua |-config.lua |--------functions |-functions.lua
functions.lua , I want to
config.lua . Is there any way?
require "../config" require "..\\config"
require you must set the path of the package, say in which files to look for the module:
package.path = package.path .. ";../config.lua" require "config"
Note that the usage is similar to what is done with operating systems path . You add a new path to what already exists so you don't lose the others.