fixed output of a lot of empty lines

master
BodgeMaster 2020-02-24 00:14:31 +01:00
parent 68d3a51a64
commit df51832a87
1 changed files with 4 additions and 4 deletions

View File

@ -1,7 +1,7 @@
#!/usr/bin/python2
print """
Variable Grabbler - version 1.7
Variable Grabbler - version 1.8
-------------------------------"""
# definitions
@ -18,14 +18,14 @@ print "Done."
print "Working on files:"
for x in parsed:
print "["+x+"]:"
print "["+x+"]:",
for path, dirs, files in os.walk(dir):
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+" >",
print "\n"+path+" >",
printed_path = True
print file_name,
@ -38,4 +38,4 @@ for x in parsed:
file_out = open(file_path, "w")
file_out.write(file_content)
file_out.close()
print ""
print "\nDone."