EvaluationWorkspace

This commit is contained in:
sebastien committed 2026-08-20 12:44:58 +02:00
1 parent ac4ab782b2
commit 2f1cd00e32
11 files changed
+746 -33

No files matched your search

+3 -5
View File
@@ -2,9 +2,7 @@ from __future__ import annotations
import os
import queue
import re
import tkinter as tk
from datetime import datetime
from pathlib import Path
from tkinter import filedialog, messagebox, ttk
from typing import Any
@@ -565,9 +563,9 @@ class CopienatorApp(tk.Tk):
self.state_store.invalidate_after(ordered_ids, step.id)
self.state_store.update_step(step.id, status="running", command=command_display(command))
self.active_step_id = step.id
timestamp = datetime.now().astimezone().strftime("%Y%m%d-%H%M%S")
safe_step = re.sub(r"[^A-Za-z0-9_.-]+", "_", step.id)
log_path = evaluation / ".copienator" / "logs" / f"{timestamp}-{safe_step}.log"
workspace = self.state_store.workspace
assert workspace is not None
log_path = workspace.log_path(step.id)
environment = os.environ.copy()
environment["PYTHONUNBUFFERED"] = "1"