diff options
author | John Wiegley <johnw@newartisans.com> | 2014-01-27 16:58:59 -0800 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2014-01-27 16:58:59 -0800 |
commit | 35c1bf03eca615ee747162c356c74ba280a6d03c (patch) | |
tree | 174b5c2a0cd9c843b30858272674f9a7e3fd2278 /src/pyinterp.cc | |
parent | 61a466636b323066674abe72b4140840f4235d57 (diff) | |
parent | 7f96b654a7b084c1fcaf7fbbed9b69e0388fdeb3 (diff) | |
download | fork-ledger-35c1bf03eca615ee747162c356c74ba280a6d03c.tar.gz fork-ledger-35c1bf03eca615ee747162c356c74ba280a6d03c.tar.bz2 fork-ledger-35c1bf03eca615ee747162c356c74ba280a6d03c.zip |
Merge pull request #231 from afh/dev/pylib
Create shared python module
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 |