Dr. Richard Zinck commited on
Commit
ba2953f
1 Parent(s): 87d8e79
Files changed (2) hide show
  1. bat_gui.py +1 -1
  2. 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 "./Results.csv" #cfg.OUTPUT_PATH
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("./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)
 
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)