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")