summaryrefslogtreecommitdiff
path: root/kpov_judge/test_task.py
diff options
context:
space:
mode:
authorTimotej Lazar <timotej.lazar@fri.uni-lj.si>2018-10-05 18:04:45 +0200
committerTimotej Lazar <timotej.lazar@fri.uni-lj.si>2018-10-05 18:04:45 +0200
commit772532d87cc97828d1e29c0ca91f50112f5a6ede (patch)
tree23cb1188889cd115c525cc3fe83a3a0adb332cac /kpov_judge/test_task.py
parentc54584bf5ae0b4973464da1e033c6628b82e9cd5 (diff)
Pass globals() to exec calls
Diffstat (limited to 'kpov_judge/test_task.py')
-rwxr-xr-xkpov_judge/test_task.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/kpov_judge/test_task.py b/kpov_judge/test_task.py
index a3eace5..ad33b15 100755
--- a/kpov_judge/test_task.py
+++ b/kpov_judge/test_task.py
@@ -79,7 +79,7 @@ def load_task(stream):
# task_check and gen_params, and a dictionary params_meta
source = stream.read()
d = {}
- exec(compile(source, 'task.py', 'exec'), d)
+ exec(compile(source, 'task.py', 'exec'), globals(), d)
return d['task'], d['task_check'], d['params_meta'], d['gen_params']
def locate_task(params, argparser, quiet=False):