Set the scope context in Scope.__getattr__(attr)
This commit is contained in:
parent
0814c5a23f
commit
45da776f96
1 changed files with 1 additions and 1 deletions
|
|
@ -50,7 +50,7 @@ namespace {
|
|||
|
||||
expr_t py_scope_getattr(scope_t& scope, const string& name)
|
||||
{
|
||||
return scope.lookup(name);
|
||||
return expr_t(scope.lookup(name), &scope);
|
||||
}
|
||||
|
||||
struct scope_wrapper : public scope_t
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue