Skip to content

Commit

Permalink
Pass input test's name to inwer
Browse files Browse the repository at this point in the history
  • Loading branch information
MasloMaslane committed Sep 6, 2023
1 parent c96579e commit 290ab61
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sio/executors/inwer.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def _run_in_executor(environ, command, executor, **kwargs):


def _run_inwer(environ, use_sandboxes=False):
command = [tempcwd('inwer')]
command = [tempcwd('inwer'), environ['in_file_name']]
if use_sandboxes:
executor = SupervisedExecutor()
else:
Expand All @@ -49,6 +49,9 @@ def run(environ):
``in_file``: the file redirected to the program's stdin
``in_file_name``: the name of the input file. It's passed to inwer as
the second argument.
``use_sandboxes``: if this key equals ``True``, the program is executed
in the SupervisedExecutor, otherwise the UnsafeExecutor
is used
Expand Down

0 comments on commit 290ab61

Please sign in to comment.