From 8b4c4f5fee69443b8df264db294c712a57c76e74 Mon Sep 17 00:00:00 2001 From: max-mauermann <40059289+max-mauermann@users.noreply.github.com> Date: Mon, 19 Aug 2024 16:35:38 +0200 Subject: [PATCH] name of the result file for the single analysis tab is constructed and returned correctly. (#414) --- gui.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gui.py b/gui.py index b2f3e9ad..3e50dccf 100644 --- a/gui.py +++ b/gui.py @@ -318,7 +318,7 @@ def runAnalysis( if input_dir: cfg.OUTPUT_PATH = output_path if output_path else input_dir else: - cfg.OUTPUT_PATH = output_path if output_path else input_path.split(".", 1)[0] + ".csv" + cfg.OUTPUT_PATH = output_path if output_path else os.path.dirname(input_path) # Parse input files if input_dir: @@ -389,7 +389,7 @@ def runAnalysis( analyze.combineResults([i[1] for i in result_list]) print("done!", flush=True) - return [[os.path.relpath(r[0], input_dir), bool(r[1])] for r in result_list] if input_dir else cfg.OUTPUT_PATH + return [[os.path.relpath(r[0], input_dir), bool(r[1])] for r in result_list] if input_dir else result_list[0][1]["csv"] _CUSTOM_SPECIES = loc.localize("species-list-radio-option-custom-list")