From d33ee17e0f7f8b835c9cc565e964a6540045d9fc Mon Sep 17 00:00:00 2001 From: mdraw Date: Tue, 28 Dec 2021 00:31:57 +0100 Subject: [PATCH] Fix input parsing regression - Invalid input paths were accidentally ignored instead of triggering error messages - The "$ deface cam" shortcut wasn't working properly --- deface/deface.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/deface/deface.py b/deface/deface.py index a530dc0..ff1ec15 100755 --- a/deface/deface.py +++ b/deface/deface.py @@ -304,7 +304,9 @@ def main(): if os.path.isdir(path): for file in os.listdir(path): ipaths.append(os.path.join(path,file)) - elif os.path.isfile(path): + else: + # Either a path to a regular file, the special 'cam' shortcut + # or an invalid path. The latter two cases are handled below. ipaths.append(path) base_opath = args.output