diff --git a/modules/lib/shutil.lua b/modules/lib/shutil.lua index e12374f..85a4828 100644 --- a/modules/lib/shutil.lua +++ b/modules/lib/shutil.lua @@ -29,7 +29,7 @@ function loadfile(fn) local f=io.open(fn,"rb") local S=f:read("*a") f:close() - return load(S) + return load(S,"=("..fn..")","bt",os.genenv()) end function run(fn,...) local r = {pcall(loadfile(fn),...)}