From 68d3a51a643ab8e6902fb15219383e9ccc40bb23 Mon Sep 17 00:00:00 2001 From: BodgeMaster <> Date: Mon, 24 Feb 2020 00:10:25 +0100 Subject: [PATCH] refined verbosity --- variable_grabbler.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/variable_grabbler.py b/variable_grabbler.py index ffe039f..1a217de 100644 --- a/variable_grabbler.py +++ b/variable_grabbler.py @@ -1,7 +1,7 @@ #!/usr/bin/python2 print """ -Variable Grabbler - version 1.6 +Variable Grabbler - version 1.7 -------------------------------""" # definitions @@ -20,10 +20,13 @@ print "Working on files:" for x in parsed: print "["+x+"]:" for path, dirs, files in os.walk(dir): - print path+" >", + printed_path = False for file_name in fnmatch.filter(files, file_name_pattern): file_path = os.path.join(path, file_name) + if not printed_path: + print path+" >", + printed_path = True print file_name, file_in = open(file_path, "r")