forked from github/server
add config.path parsing to a module of its own.
This commit is contained in:
parent
405c63f447
commit
7348ce698b
|
@ -1,10 +1,4 @@
|
||||||
if config.paths ~= nil then
|
require 'eressea.path'
|
||||||
for path in string.gmatch(config.paths, "([^:]+)") do
|
|
||||||
package.path = package.path .. ';' .. path .. '/?.lua;' .. path .. '/?/init.lua'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
print(package.path)
|
|
||||||
|
|
||||||
require 'eressea.resources'
|
require 'eressea.resources'
|
||||||
require 'eressea.spells'
|
require 'eressea.spells'
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
if config.paths ~= nil then
|
||||||
|
for path in string.gmatch(config.paths, "([^:]+)") do
|
||||||
|
package.path = package.path .. ';' .. path .. '/?.lua;' .. path .. '/?/init.lua'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
print(package.path)
|
Loading…
Reference in New Issue