From 772532d87cc97828d1e29c0ca91f50112f5a6ede Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Fri, 5 Oct 2018 18:04:45 +0200 Subject: Pass globals() to exec calls --- kpov_judge/test_task.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kpov_judge/test_task.py') 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): -- cgit v1.2.1