Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
Xyene committed Dec 31, 2023
1 parent 3a687ab commit 32c5036
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions dmoj/executors/compiled_executor.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import hashlib
import os
import pty
import tempfile
from typing import Any, Dict, IO, List, Optional, Tuple, Union

import pylru
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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],
**{
Expand Down

0 comments on commit 32c5036

Please sign in to comment.