getting folder name of current addon

Hello, I wanted to know, if its possible to use like “file.find()” to get the foldername of the current addon, like I want to code a “module loader”, like in ULX, but the only known way, is setting the path manually, and therefore I need to know the foldername, which cant be 100% right since, if I like upload it, others could change it blah blah, afaik file.find() using “…/…/” etc doesnt work?


does “nups” mean like “…/”?

[editline]25th July 2015[/editline]

Ah you mean like

print(debug.getinfo(customfunctionfromaddonhere, "S").short_src)

And using that with string.explode would make the addonincluder, thanks!