local dirName = shell.dir()
For some reason, when I run this program, I get:
apiName.lua:1: attempt to index ? (a nil value)
When I try shell.dir() in the lua program, it works fine. What am I doing wrong?
EDIT: I think I figured it out. Correct me if I'm wrong, but it looks like when you use os.loadAPI(), it's not being loaded in a particular folder, so shell.dir() doesn't work right. (And/or doesn't exist?)
Edited by skwerlman, 16 March 2014 - 05:24 AM.












