From 32c503605a01c7e24d6f11ad970b6feec86d1f62 Mon Sep 17 00:00:00 2001 From: Tudor Brindus Date: Sun, 31 Dec 2023 13:59:45 -0500 Subject: [PATCH] . --- dmoj/executors/compiled_executor.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dmoj/executors/compiled_executor.py b/dmoj/executors/compiled_executor.py index d7665853f..e4a704341 100644 --- a/dmoj/executors/compiled_executor.py +++ b/dmoj/executors/compiled_executor.py @@ -1,6 +1,7 @@ import hashlib import os import pty +import tempfile from typing import Any, Dict, IO, List, Optional, Tuple, Union import pylru @@ -40,7 +41,7 @@ def _cleanup_cache_entry(_key, executor: 'CompiledExecutor') -> None: def __call__(cls, *args, **kwargs) -> 'CompiledExecutor': is_cached: bool = kwargs.pop('cached', False) if is_cached: - kwargs['dest_dir'] = env.compiled_binary_cache_dir + kwargs['dest_dir'] = tempfile.tempdir#env.compiled_binary_cache_dir # Finish running all constructors before compiling. obj: 'CompiledExecutor' = super().__call__(*args, **kwargs) @@ -142,7 +143,7 @@ def create_compile_process(self, args: List[str]) -> TracedPopen: 'write_fs': self.compiler_write_fs, 'required_dirs': self.compiler_required_dirs, }) - + proc = TracedPopen( [utf8bytes(a) for a in args], **{