--
You received this message because you are subscribed to the Google Groups "openresty-en" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openresty-en...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hello,I use debug.getinfo(1). The returned table will have a 'source' key. I see the following idiom used quite a bitlocal current_path = string.sub(debug.getinfo(1).source, 2, string.len("/scriptname.lua") * -1)
--