Hey guys, a quick one from me; is there any reliable way of using the File.Find/FindDir functions (or similar), relative to the running script file’s directory?
I can think of a way of doing this, namely, putting the script’s filename in a string and then searching for that string from the base directory. I would do that, but it is horribly messy and weak and I hate it.
I want to be able to find the directory of the currently running script, and recursively load all of the lua files in specified subfolders so that I can implement a simple “drag and drop” loading system for objects. This will be in an addon folder but I can’t guarantee the filepath which is why I need this. I can implement the system myself as long as I have a reliable way of finding home.