Add interactive option
This commit is contained in:
parent
122cd0fa73
commit
ff8f12c134
6 changed files with 112 additions and 5 deletions
|
@ -210,9 +210,16 @@ class ProblemDataCompiler(object):
|
|||
if self.data.output_prefix is not None:
|
||||
init['output_prefix_length'] = self.data.output_prefix
|
||||
if self.data.checker:
|
||||
init['checker'] = make_checker(self.data)
|
||||
if self.data.checker == 'interact':
|
||||
init['interactive'] = {
|
||||
'files': split_path_first(self.data.interactive_judge.name)[1]
|
||||
}
|
||||
init['unbuffered'] = True
|
||||
else:
|
||||
init['checker'] = make_checker(self.data)
|
||||
else:
|
||||
self.data.checker_args = ''
|
||||
|
||||
return init
|
||||
|
||||
def compile(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue