#
#
Last edited by regomodo; January 23rd, 2010 at 09:14 PM.
Is this for enhancing your E-peen?
even though you have listed out the directory information using os.listdir(), however, if you are doing further processing , you should change directory to that directory first, using os.chdir()
#
Last edited by regomodo; January 23rd, 2010 at 09:13 PM.
Is this for enhancing your E-peen?
That's strange--look at the traceback. It says the bad line is
but there is no such line in your code. Are you sure it was the latest version of your file in which the problem occurred?files = os.listdir(dir_now)
#
Last edited by regomodo; January 23rd, 2010 at 09:13 PM.
Is this for enhancing your E-peen?
OK, but now I don't understand how ghostdog74's suggestion fixed your problem. The error was definitely with os.listdir(...) (and not some subsequent command), and you gave apparently give it a full path name (that's what the traceback shows), so why should os.chdir(...) have any effect?
Bookmarks