diff options
author | ankitjavalkar | 2016-09-29 18:36:48 +0530 |
---|---|---|
committer | ankitjavalkar | 2016-09-30 10:37:59 +0530 |
commit | b77c5083c2f954e9bf36b4515c337556a0ba47b3 (patch) | |
tree | faa11714cf074265ff527127263beb9c6c471416 /yaksh/code_evaluator.py | |
parent | cb0569a32422a195d4165ef405ac5560024dabda (diff) | |
download | online_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.py | 2 |
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") |