summaryrefslogtreecommitdiff
path: root/yaksh/code_evaluator.py
diff options
context:
space:
mode:
authorankitjavalkar2016-09-29 18:36:48 +0530
committerankitjavalkar2016-09-30 10:37:59 +0530
commitb77c5083c2f954e9bf36b4515c337556a0ba47b3 (patch)
treefaa11714cf074265ff527127263beb9c6c471416 /yaksh/code_evaluator.py
parentcb0569a32422a195d4165ef405ac5560024dabda (diff)
downloadonline_test-b77c5083c2f954e9bf36b4515c337556a0ba47b3.tar.gz
online_test-b77c5083c2f954e9bf36b4515c337556a0ba47b3.tar.bz2
online_test-b77c5083c2f954e9bf36b4515c337556a0ba47b3.zip
Reset the current working directory to top most level after evaluation
Diffstat (limited to 'yaksh/code_evaluator.py')
-rw-r--r--yaksh/code_evaluator.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/yaksh/code_evaluator.py b/yaksh/code_evaluator.py
index 90ca6e0..870a67f 100644
--- a/yaksh/code_evaluator.py
+++ b/yaksh/code_evaluator.py
@@ -135,7 +135,7 @@ class CodeEvaluator(object):
def teardown(self):
# Cancel the signal
delete_signal_handler()
- self._change_dir(MY_DIR)
+ self._change_dir(dirname(MY_DIR))
def check_code(self):
raise NotImplementedError("check_code method not implemented")