1 |
1 |
2 local path=string.gsub(arg[0], "(.*)/[^/]*", "%1"); |
2 local lgen={} |
3 if path~=nil then |
3 local lgen_path=string.gsub(arg[0], "(.*)/[^/]*", "%1"); |
4 package.path=package.path .. ';' .. path .. '/?.lua' |
4 if lgen_path~=nil then |
|
5 package.path=package.path .. ';' .. lgen_path .. '/?.lua' |
5 end |
6 end |
6 |
7 |
7 -- Lua 5.1 setfenv/getfenv compatibility for Lua 5.2 |
8 -- Lua 5.1 setfenv/getfenv compatibility for Lua 5.2 |
8 -- This is required by the "obsolete" ltp module |
9 -- This is required by the "obsolete" ltp module |
9 local CE = require('compat_env') |
10 local CE = require('compat_env') |