Skip to content
Snippets Groups Projects
Commit 25e7c080 authored by Victor Zimmermann's avatar Victor Zimmermann
Browse files

Fix paranthesis.

parent 647dfad5
No related branches found
No related tags found
No related merge requests found
......@@ -14,7 +14,7 @@ import sys
time_int = int(time.strftime("%Y%m%d%H%M%S")[2:])
final_path = config.final+'{}.absinth'.format(hex(time_int)[2:])
new_path = final_path = config.final+'.new.absinth')
new_path = final_path = config.final+'.new.absinth'
results = open(final_path, 'w')
new_results = open(new_path, 'w')
......
......@@ -14,10 +14,7 @@ import time
def main():
if '-bl' in sys.argv:
file_path = config.base_out
else:
file_path = config.output
file_path = config.output
files = [file_path+'/'+f for f in os.listdir(file_path)]
......@@ -32,19 +29,21 @@ def main():
time_int = int(time.strftime("%Y%m%d%H%M%S")[2:])
final_path = 'final/{}.absinth'.format(hex(time_int)[2:])
final_path = config.final+'{}.absinth'.format(hex(time_int)[2:])
new_path = config.final+'.new.absinth'
if not os.path.exists('final'):
os.makedirs('final')
final = open(final_path, 'w')
final_file = open(final_path, 'w')
new_file = open(new_path, 'w')
final.write('subTopicID\tresultID\n')
final_file.write('subTopicID\tresultID\n')
new_file.write('subTopicID\tresultID\n')
for r in results:
final.write('\t'.join(r))
final_file.write('\t'.join(r))
new_file.write('\t'.join(r))
final.close()
final_file.close()
new_file.close()
if __name__ == "__main__":
......
......@@ -14,7 +14,7 @@ import sys
time_int = int(time.strftime("%Y%m%d%H%M%S")[2:])
final_path = config.final+'{}.absinth'.format(hex(time_int)[2:])
new_path = final_path = config.final+'.new.absinth')
new_path = final_path = config.final+'.new.absinth'
results = open(final_path, 'w')
new_results = open(new_path, 'w')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment