Posted 13 May 2013 - 10:10 AM
I'm working in Lua (not ComputerCraft Lua or another variant) and I want to know how you can find where the current Lua script is being stored
I mean, something like this:
C:\Users\blergh\example.Lua
I want to be able to find that in the Lua script in example.Lua and be able to say; "That's where I'm running from."
I'm looking in the IO library and the 'LuaFileSystem' module, but I've not found anything that returns the directory of the currently executing script.
I mean, something like this:
C:\Users\blergh\example.Lua
I want to be able to find that in the Lua script in example.Lua and be able to say; "That's where I'm running from."
I'm looking in the IO library and the 'LuaFileSystem' module, but I've not found anything that returns the directory of the currently executing script.