SyntaxFix
Write A Post
Hire A Developer
Questions
You have to specify the path that you are working on:
source = '/home/test/py_test/' for root, dirs, filenames in os.walk(source): for f in filenames: print f fullpath = os.path.join(source, f) log = open(fullpath, 'r')