diff --git a/memfs.py b/memfs.py index e98241fb2..877b992d7 100755 --- a/memfs.py +++ b/memfs.py @@ -30,9 +30,9 @@ for directory in dirs: dname = os.path.basename(directory) NAMES.append(dname) - for dirname, _, files in os.walk(directory): + for dirpath, dirnames, files in os.walk(directory): for name in files: - full = '%s/%s' % (dirname, name) + full = '%s/%s' % (dirpath, name) _, ext = os.path.splitext(full) if ext not in ['.def', '.table', '.tmpl']: continue