lgen.lua

changeset 9
751216807683
parent 7
038275cd92ed
child 21
3c71c525cec2
equal deleted inserted replaced
8:836dac92eced 9:751216807683
3 if path~=nil then 3 if path~=nil then
4 package.path=package.path .. ';' .. path .. '/?.lua' 4 package.path=package.path .. ';' .. path .. '/?.lua'
5 end 5 end
6 6
7 -- Lua 5.1 setfenv/getfenv compatibility for Lua 5.2 7 -- Lua 5.1 setfenv/getfenv compatibility for Lua 5.2
8 -- This is required by the "obsolete" ltp module
8 local CE = require('compat_env') 9 local CE = require('compat_env')
9 _G.setfenv = CE.setfenv 10 _G.setfenv = CE.setfenv
10 _G.getfenv = CE.getfenv 11 _G.getfenv = CE.getfenv
11 12
12 local scan=require('scan') 13 local scan=require('scan')

mercurial