Windows compatibility
This commit is contained in:
@@ -10,6 +10,7 @@ from typing import List, Union
|
||||
from google import genai
|
||||
from google.genai import types
|
||||
from concurrent.futures import ThreadPoolExecutor
|
||||
from platform_utils import validate_windows_labels
|
||||
from utils import compile_to_pdf
|
||||
|
||||
def get_lcp(s1: str, s2: str) -> str:
|
||||
@@ -602,6 +603,7 @@ def process_exam(folder_path: str, restart: bool = False):
|
||||
break
|
||||
|
||||
labels_list = [item.label for group in grouped_items for item in group if isinstance(item, QuestionItem)]
|
||||
validate_windows_labels(labels_list)
|
||||
|
||||
# Save labels and proceed
|
||||
with open(folder / "labels", 'w', encoding='utf-8') as f_labels:
|
||||
|
||||
Reference in New Issue
Block a user