refined verbosity

master
BodgeMaster 2020-02-24 00:10:25 +01:00
parent 2d107e6234
commit 68d3a51a64
1 changed files with 5 additions and 2 deletions

View File

@ -1,7 +1,7 @@
#!/usr/bin/python2 #!/usr/bin/python2
print """ print """
Variable Grabbler - version 1.6 Variable Grabbler - version 1.7
-------------------------------""" -------------------------------"""
# definitions # definitions
@ -20,10 +20,13 @@ print "Working on files:"
for x in parsed: for x in parsed:
print "["+x+"]:" print "["+x+"]:"
for path, dirs, files in os.walk(dir): for path, dirs, files in os.walk(dir):
print path+" >", printed_path = False
for file_name in fnmatch.filter(files, file_name_pattern): for file_name in fnmatch.filter(files, file_name_pattern):
file_path = os.path.join(path, file_name) file_path = os.path.join(path, file_name)
if not printed_path:
print path+" >",
printed_path = True
print file_name, print file_name,
file_in = open(file_path, "r") file_in = open(file_path, "r")