From 350c2147dd5351f72a9375b1f9945f5a22e20a88 Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Wed, 25 Dec 2019 11:44:48 +0100 Subject: [PATCH] process-text-files.py: Make it usable again This --maxdepth / --name patch introduced broke run(). This commit fixes that. Signed-off-by: Jan Lindemann --- scripts/process-text-files.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/process-text-files.py b/scripts/process-text-files.py index da3f748..ee60c4b 100644 --- a/scripts/process-text-files.py +++ b/scripts/process-text-files.py @@ -381,7 +381,7 @@ class Cmd(jwutils.Cmd): if regex is not None: for entry in _scantree(args.root, args.maxdepth): if re.search(regex, entry.name): - root = os.dirname(entry.path) + root = os.path.dirname(entry.path) if not root: root = '.' files.append((root, entry.path))