summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-24 20:01:46 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-24 20:01:46 -0400
commit45da776f96417ed28b27278799bc81d2cb7d6199 (patch)
tree621436644738d802974204bcbd043860738112f8 /src
parent0814c5a23f44120088b6139bb7bf1f934f1d1057 (diff)
downloadfork-ledger-45da776f96417ed28b27278799bc81d2cb7d6199.tar.gz
fork-ledger-45da776f96417ed28b27278799bc81d2cb7d6199.tar.bz2
fork-ledger-45da776f96417ed28b27278799bc81d2cb7d6199.zip
Set the scope context in Scope.__getattr__(attr)
Diffstat (limited to 'src')
-rw-r--r--src/py_scope.cc2
1 files changed, 1 insertions, 1 deletions
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