forked from root/threadr.lostcave.ddnss.de
fixed output of a lot of empty lines
parent
68d3a51a64
commit
df51832a87
|
@ -1,7 +1,7 @@
|
||||||
#!/usr/bin/python2
|
#!/usr/bin/python2
|
||||||
|
|
||||||
print """
|
print """
|
||||||
Variable Grabbler - version 1.7
|
Variable Grabbler - version 1.8
|
||||||
-------------------------------"""
|
-------------------------------"""
|
||||||
|
|
||||||
# definitions
|
# definitions
|
||||||
|
@ -18,14 +18,14 @@ print "Done."
|
||||||
|
|
||||||
print "Working on files:"
|
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):
|
||||||
printed_path = False
|
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:
|
if not printed_path:
|
||||||
print path+" >",
|
print "\n"+path+" >",
|
||||||
printed_path = True
|
printed_path = True
|
||||||
print file_name,
|
print file_name,
|
||||||
|
|
||||||
|
@ -38,4 +38,4 @@ for x in parsed:
|
||||||
file_out = open(file_path, "w")
|
file_out = open(file_path, "w")
|
||||||
file_out.write(file_content)
|
file_out.write(file_content)
|
||||||
file_out.close()
|
file_out.close()
|
||||||
print ""
|
print "\nDone."
|
||||||
|
|
Loading…
Reference in New Issue