Support for A.pdf, A.tex and Ac.tex for initial files
This commit is contained in:
1 parent
42a5b9778e
commit
e4e25eca55
12 files changed
+104
-32
No files matched your search
@@ -331,14 +331,18 @@ def process_exam(
|
||||
cache_c_file = cache_dir / "gemini_context.json"
|
||||
|
||||
# 1. Resolve files
|
||||
pdf_path = folder / "enonce.pdf"
|
||||
pdf_path = workspace.statement_pdf_file
|
||||
enonce_path = find_file(folder, "enonce")
|
||||
if enonce_path is None:
|
||||
enonce_path = workspace.statement_source_file
|
||||
correction_path = find_file(folder, "correction")
|
||||
if correction_path is None:
|
||||
correction_path = workspace.correction_source_file
|
||||
|
||||
missing = []
|
||||
if not pdf_path.is_file(): missing.append("enonce.pdf")
|
||||
if not enonce_path: missing.append("enonce.org or enonce.tex")
|
||||
if not correction_path: missing.append("correction.org or correction.tex")
|
||||
if not enonce_path.is_file(): missing.append("enonce.tex")
|
||||
if not correction_path.is_file(): missing.append("correction.tex")
|
||||
|
||||
if missing:
|
||||
raise CliError(
|
||||
|
||||
Reference in new issue
Block a user