From 9791337f538b32a69333682d87894a4c99ef5509 Mon Sep 17 00:00:00 2001 From: Roger Fu Date: Tue, 5 Nov 2019 20:42:34 -0500 Subject: [PATCH] Import `dmoj.executors` within `compile_with_auxiliary_files` Otherwise the runtimes aren't loaded. --- dmoj/utils/aux_files.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dmoj/utils/aux_files.py b/dmoj/utils/aux_files.py index 515ac2572..3655ed1de 100644 --- a/dmoj/utils/aux_files.py +++ b/dmoj/utils/aux_files.py @@ -2,8 +2,6 @@ import tempfile from dmoj.error import InternalError -from dmoj.executors import executors -from dmoj.executors.compiled_executor import CompiledExecutor def mktemp(data): @@ -14,6 +12,9 @@ def mktemp(data): def compile_with_auxiliary_files(filenames, lang=None, compiler_time_limit=None): + from dmoj.executors import executors + from dmoj.executors.compiled_executor import CompiledExecutor + sources = {} for filename in filenames: