From 45da776f96417ed28b27278799bc81d2cb7d6199 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Tue, 24 Feb 2009 20:01:46 -0400 Subject: Set the scope context in Scope.__getattr__(attr) --- src/py_scope.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/py_scope.cc') diff --git a/src/py_scope.cc b/src/py_scope.cc index 897e2a84..6054e6a2 100644 --- a/src/py_scope.cc +++ b/src/py_scope.cc @@ -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 -- cgit v1.2.3