Skip to content
This repository was archived by the owner on Oct 23, 2023. It is now read-only.

Commit 62c9906

Browse files
authored
Merge pull request #1 from tmsocial/tmorigin
Fix problem that statement files are always compiled in english
2 parents d9740db + e39c953 commit 62c9906

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

python/formats/ioi_format/execution.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,8 +233,9 @@ def compile_statements(pool: ExecutionPool, task: IOITask,
233233
valid_extensions=[".tex"])
234234
for tex_file in tex_files:
235235
pdf_file = tex_file.replace(".tex", ".pdf")
236+
language = os.path.split(os.path.splitext(tex_file)[0])[1]
236237
statement = OIITexStatement(task, os.path.abspath(tex_file))
237-
statement.compile(pool)
238+
statement.compile(pool, language)
238239
if not pool.config.dry_run:
239240
statement.pdf_file.getContentsToFile(pdf_file, True, True)
240241
interface.add_statement(statement)

0 commit comments

Comments
 (0)