From af571c104790b0703d94b0f94b949041cf4f5c1d Mon Sep 17 00:00:00 2001 From: ELIPTUS Date: Wed, 12 Nov 2014 22:51:56 -0800 Subject: Improve Embedded Python Support Discussion: https://groups.google.com/d/msg/ledger-cli/kq9sKoRX9vw/fmyhvPslzokJ --- src/py_session.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/py_session.cc') 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") = -- cgit v1.2.3