Skip to content

Commit b6349d6

Browse files
committed
fix: Remove duplicate Path import in translation phase
- Remove redundant 'from pathlib import Path' inside translation function - Path is already imported at module level, causing scope conflict - Fixes "cannot access local variable 'Path' where it is not associated with a value" error
1 parent 5cd2e3a commit b6349d6

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

tools/ai-markmap-agent/src/graph.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -942,7 +942,6 @@ def run_translations(state: WorkflowState) -> WorkflowState:
942942
# Import unified translation function from translate_only.py
943943
import sys
944944
import importlib.util
945-
from pathlib import Path
946945

947946
# Get path to translate_only.py
948947
translate_only_path = Path(__file__).parent.parent.parent / "translate_only.py"

0 commit comments

Comments
 (0)