X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=cmd%2Fmicro%2Flua.go;h=d97a1191eb6d6a903973b318c3bfb0e82609bbfd;hb=3c87d1cfb41e318e9349650e931b5e99cf0fc949;hp=edabba759ac3f592ea5055d5d59e40a763c83f1d;hpb=812b547679d803a233261c1e5f8a95dfebd9f41e;p=micro.git diff --git a/cmd/micro/lua.go b/cmd/micro/lua.go index edabba75..d97a1191 100644 --- a/cmd/micro/lua.go +++ b/cmd/micro/lua.go @@ -47,7 +47,7 @@ func Import(pkg string) *lua.LTable { return importFmt() case "io": return importIo() - case "io/ioutil": + case "io/ioutil", "ioutil": return importIoUtil() case "net": return importNet() @@ -416,7 +416,6 @@ func importFilePath() *lua.LTable { pkg := L.NewTable() L.SetField(pkg, "Join", luar.New(L, filepath.Join)) - L.SetField(pkg, "Clean", luar.New(L, filepath.Join)) L.SetField(pkg, "Abs", luar.New(L, filepath.Abs)) L.SetField(pkg, "Base", luar.New(L, filepath.Base)) L.SetField(pkg, "Clean", luar.New(L, filepath.Clean))