I’ve got several different applications that I’m working on that each will be sharing some of the same code. Here is the directory structure.
/Path/to/central/location/package1/package1.lua /Path/to/central/location/package2/package2.lua /Path/to/central/location/application1/main.lua /Path/to/central/location/application2/main.lua
In each of those main.lua files I have this line.
package.path = package.path .. ";/Path/to/central/location/package1/?.lua" package.path = package.path .. ";/Path/to/central/location/package2/?.lua"
Is there some way I can replace the “;/Path/to/central/location/” part with something to indicate the parent directory like
";../package1/?.lua" ";../package2/?.lua"
This doesn’t seem work.