Somehow I must've gotten dir() confused with something that prints out the files in the directory the program was run from. Can't remember how I coocked that up, but I would like to note that it DID work up until the point when I put it in my larger program. So maybe I had something else . . . but thanks for noting that, I'll look into alternatives now.
EDIT
I'm now using os.listdir(os.getcwd()) and it works unbelievably well. Thanks for all the help, even if it turned out to be minutly arbitrary. Sorry, but thanks a lot.
[Edited by - Splinter of Chaos on July 2, 2006 7:38:04 PM]