Skip to content

Commit

Permalink
Import dmoj.executors within compile_with_auxiliary_files
Browse files Browse the repository at this point in the history
Otherwise the runtimes aren't loaded.
  • Loading branch information
kiritofeng authored and Xyene committed Nov 6, 2019
1 parent 9603abc commit 9791337
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions dmoj/utils/aux_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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:
Expand Down

0 comments on commit 9791337

Please sign in to comment.