Problem in Python . . . (It's either parsing or directories.)

Started by
11 comments, last by Splinter of Chaos 17 years, 9 months ago
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]
Advertisement
PS. You don't need that else-pass stuff in every if check, by the way.
Actually, I don't know why, but it helped make it work right.

This topic is closed to new replies.

Advertisement