Minor code enhancements
This commit is contained in:
@@ -59,7 +59,12 @@ class PythonEvaluator(OneReturnValueEvaluator):
|
||||
return sheerka.ret(self.name, False, error, parents=[return_value])
|
||||
|
||||
def get_locals(self, context, node):
|
||||
my_locals = {"sheerka": context.sheerka}
|
||||
my_locals = {
|
||||
"sheerka": context.sheerka,
|
||||
"desc": context.sheerka.dump_desc,
|
||||
"concepts": context.sheerka.dump_concepts,
|
||||
"definitions": context.sheerka.dump_definitions,
|
||||
}
|
||||
if context.obj:
|
||||
context.log(self.verbose_log,
|
||||
f"Concept '{context.obj}' is in context. Adding its properties to locals if any.", self.name)
|
||||
|
||||
Reference in New Issue
Block a user