diff --git a/src/gui/panels/step9_panel.py b/src/gui/panels/step9_panel.py index 9575c17..c49f158 100644 --- a/src/gui/panels/step9_panel.py +++ b/src/gui/panels/step9_panel.py @@ -312,6 +312,16 @@ class Step9Panel(QWidget): if not existing or not existing.strip(): self.csv_file.set_path(step8_output_path) + # 1.2 尝试从 pipeline 读取 Step 8 宽表 indices_path(优先级最高) + if pipeline and hasattr(pipeline, 'indices_path') and pipeline.indices_path: + step8_indices_path = pipeline.indices_path + if not os.path.isabs(step8_indices_path): + step8_indices_path = os.path.join(self.work_dir or '', step8_indices_path).replace('\\', '/') + current_path = self.csv_file.get_path() + if not current_path or not current_path.strip(): + self.csv_file.set_path(step8_indices_path) + print(f"✅ 从pipeline.indices_path回填Step8产出: {step8_indices_path}") + # 1.5 自动探测并回填 Step 8 双轨输出的 Traditional_Indices 目录 if self.work_dir: trad_indices_dir = os.path.join(