diff options
Diffstat (limited to 'src/pyinterp.cc')
-rw-r--r-- | src/pyinterp.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/pyinterp.cc b/src/pyinterp.cc index e15ff503..12690854 100644 --- a/src/pyinterp.cc +++ b/src/pyinterp.cc @@ -34,6 +34,7 @@ #include "pyinterp.h" #include "pyutils.h" #include "account.h" +#include "report.h" #include "xact.h" #include "post.h" @@ -76,6 +77,10 @@ void initialize_for_python() export_xact(); export_session(); export_journal(); + + python_session.reset(new ledger::python_interpreter_t); + shared_ptr<session_t> session_ptr = python_session; + scope_t::default_scope = new report_t(*session_ptr); } struct python_run |