EvaluationWorkspace
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user