summaryrefslogtreecommitdiff
path: root/yaksh/hook_evaluator.py
diff options
context:
space:
mode:
Diffstat (limited to 'yaksh/hook_evaluator.py')
-rw-r--r--yaksh/hook_evaluator.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/yaksh/hook_evaluator.py b/yaksh/hook_evaluator.py
index 6c8b2c3..c125b21 100644
--- a/yaksh/hook_evaluator.py
+++ b/yaksh/hook_evaluator.py
@@ -53,7 +53,7 @@ class HookEvaluator(BaseEvaluator):
try:
tb = None
_tests = compile(self.hook_code, '<string>', mode='exec')
- exec(_tests, locals())
+ exec(_tests, globals())
success, err, mark_fraction = check_answer(self.user_answer)
except TimeoutException:
raise