Minor code enhancements

This commit is contained in:
2020-01-11 16:03:30 +01:00
parent 40416ac337
commit 73a6d4e6c2
5 changed files with 75 additions and 34 deletions
+6 -1
View File
@@ -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)