diff options
Diffstat (limited to 'kpov_judge/test_task.py')
-rwxr-xr-x | kpov_judge/test_task.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/kpov_judge/test_task.py b/kpov_judge/test_task.py index 4251b50..f01d43d 100755 --- a/kpov_judge/test_task.py +++ b/kpov_judge/test_task.py @@ -91,10 +91,11 @@ def load_task(stream): # task(...) and a dictionary "params_meta". source = stream.read() t = compile(source, 'task.py', 'exec') - exec(t) + d = {} + exec(t, d) # get a list of arguments for task(...) # args_list = inspect.getargs(task.func_code)[0] - return task, task_check, params_meta, gen_params + return d['task'], d['task_check'], d['params_meta'], d['gen_params'] def locate_task(params, argparser, dialog): # first the URL where all tasks are stored |