Mercurial Hosting > luan
changeset 1569:adf83ae2b9ea
undo rel
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Wed, 18 Nov 2020 19:41:20 -0700 |
parents | adba594db0b4 |
children | 81288d8b20a2 |
files | src/luan/modules/Boot.luan |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/luan/modules/Boot.luan Wed Nov 18 17:46:16 2020 -0700 +++ b/src/luan/modules/Boot.luan Wed Nov 18 19:41:20 2020 -0700 @@ -226,6 +226,7 @@ end Boot.uri = uri +--[[ local function get_caller_file() for _, ste in ipairs(LuanException.getLuanStackTrace()) do local f = ste.getFileName() @@ -238,11 +239,12 @@ function schemes.rel(path) local f = get_caller_file() +System.out.println(f) f = uri(f) f.parent or error "source isn't file" return f.parent().child(path) end - +]] function Boot.read(uri_str) -- for PackageLuan.java local u = uri(uri_str)