Spaces:
Runtime error
Runtime error
Dr. Richard Zinck
commited on
Commit
•
ba2953f
1
Parent(s):
87d8e79
Fixes
Browse files- bat_gui.py +1 -1
- bat_ident.py +1 -1
bat_gui.py
CHANGED
@@ -251,7 +251,7 @@ def runAnalysis(
|
|
251 |
progress((i, len(flist)), total=len(flist), unit="files")
|
252 |
result = f.result()
|
253 |
result_list.append(result)
|
254 |
-
return [[os.path.relpath(r[0], input_dir), r[1]] for r in result_list] if input_dir else
|
255 |
|
256 |
|
257 |
def extractSegments_wrapper(entry):
|
|
|
251 |
progress((i, len(flist)), total=len(flist), unit="files")
|
252 |
result = f.result()
|
253 |
result_list.append(result)
|
254 |
+
return [[os.path.relpath(r[0], input_dir), r[1]] for r in result_list] if input_dir else cfg.OUTPUT_PATH
|
255 |
|
256 |
|
257 |
def extractSegments_wrapper(entry):
|
bat_ident.py
CHANGED
@@ -328,7 +328,7 @@ def analyze_file(item):
|
|
328 |
else:
|
329 |
out_string = save_result_file(results, cfg.OUTPUT_PATH, fpath)
|
330 |
# Save as file
|
331 |
-
with open("
|
332 |
postString = out_string.split("\n", 1)[1]
|
333 |
# rfile.write(fpath.join(postString.splitlines(True)))
|
334 |
rfile.write(postString)
|
|
|
328 |
else:
|
329 |
out_string = save_result_file(results, cfg.OUTPUT_PATH, fpath)
|
330 |
# Save as file
|
331 |
+
with open(cfg.OUTPUT_PATH + "Results.csv", "a", encoding="utf-8") as rfile:
|
332 |
postString = out_string.split("\n", 1)[1]
|
333 |
# rfile.write(fpath.join(postString.splitlines(True)))
|
334 |
rfile.write(postString)
|