diff options
author | ELIPTUS <eliptus+git@gmail.com> | 2014-11-12 22:51:56 -0800 |
---|---|---|
committer | ELIPTUS <eliptus+git@gmail.com> | 2014-11-12 22:51:56 -0800 |
commit | af571c104790b0703d94b0f94b949041cf4f5c1d (patch) | |
tree | 43d0d7024aeb3d0f9327307f420acd9b5c182b32 /src/py_session.cc | |
parent | a3f3aa304fcfb19fc716c5eaf33a6e152bb3aa71 (diff) | |
download | fork-ledger-af571c104790b0703d94b0f94b949041cf4f5c1d.tar.gz fork-ledger-af571c104790b0703d94b0f94b949041cf4f5c1d.tar.bz2 fork-ledger-af571c104790b0703d94b0f94b949041cf4f5c1d.zip |
Improve Embedded Python Support
Discussion:
https://groups.google.com/d/msg/ledger-cli/kq9sKoRX9vw/fmyhvPslzokJ
Diffstat (limited to 'src/py_session.cc')
-rw-r--r-- | src/py_session.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/py_session.cc b/src/py_session.cc index 25d13cc0..5253dba3 100644 --- a/src/py_session.cc +++ b/src/py_session.cc @@ -61,6 +61,8 @@ void export_session() .def("read_journal_files", &session_t::read_journal_files, return_internal_reference<>()) .def("close_journal_files", &session_t::close_journal_files) + .def("journal", &session_t::get_journal, + return_internal_reference<>()) ; scope().attr("session") = |