From df51832a8739f94816724d466c36d671cddbc5c1 Mon Sep 17 00:00:00 2001 From: BodgeMaster <> Date: Mon, 24 Feb 2020 00:14:31 +0100 Subject: [PATCH] fixed output of a lot of empty lines --- variable_grabbler.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/variable_grabbler.py b/variable_grabbler.py index 1a217de..68b7195 100644 --- a/variable_grabbler.py +++ b/variable_grabbler.py @@ -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."