daca2: autopep8 formatting
This commit is contained in:
parent
9e12bdf9cb
commit
a7e925283a
|
@ -28,24 +28,29 @@ def removeAllExceptResults():
|
||||||
elif filename != 'results.txt':
|
elif filename != 'results.txt':
|
||||||
os.remove(filename)
|
os.remove(filename)
|
||||||
|
|
||||||
|
|
||||||
def generateDaca2Report(allfolders):
|
def generateDaca2Report(allfolders):
|
||||||
filename = os.path.expanduser('~/daca2/daca2.html')
|
filename = os.path.expanduser('~/daca2/daca2.html')
|
||||||
f = open(filename, 'wt')
|
f = open(filename, 'wt')
|
||||||
f.write('<html>\n')
|
f.write('<html>\n')
|
||||||
f.write('<body>\n')
|
f.write('<body>\n')
|
||||||
f.write('<h1>DACA2</h1>\n')
|
f.write('<h1>DACA2</h1>\n')
|
||||||
|
|
||||||
f.write('<h2>All folders</h2>\n');
|
|
||||||
for folder in allfolders:
|
|
||||||
results = os.path.expanduser('~/daca2/' + folder + '/results.txt')
|
|
||||||
if os.path.isfile(results):
|
|
||||||
f.write('<a href="'+folder+'/results.txt">'+folder+'</a><br>\n')
|
|
||||||
else:
|
|
||||||
f.write(folder + '<br>\n')
|
|
||||||
f.write('</body>\n')
|
|
||||||
f.write('</html>\n')
|
|
||||||
f.close()
|
|
||||||
|
|
||||||
|
f.write('<h2>All folders</h2>\n')
|
||||||
|
for folder in allfolders:
|
||||||
|
results = os.path.expanduser('~/daca2/' + folder + '/results.txt')
|
||||||
|
if os.path.isfile(results):
|
||||||
|
f.write(
|
||||||
|
'<a href="' +
|
||||||
|
folder +
|
||||||
|
'/results.txt">' +
|
||||||
|
folder +
|
||||||
|
'</a><br>\n')
|
||||||
|
else:
|
||||||
|
f.write(folder + '<br>\n')
|
||||||
|
f.write('</body>\n')
|
||||||
|
f.write('</html>\n')
|
||||||
|
f.close()
|
||||||
|
|
||||||
|
|
||||||
workdir = os.path.expanduser('~/daca2/')
|
workdir = os.path.expanduser('~/daca2/')
|
||||||
|
|
Loading…
Reference in New Issue