summaryrefslogtreecommitdiff
path: root/src/pyledger.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/pyledger.cc')
-rw-r--r--src/pyledger.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/pyledger.cc b/src/pyledger.cc
index b7654e5d..688374a6 100644
--- a/src/pyledger.cc
+++ b/src/pyledger.cc
@@ -46,8 +46,9 @@ void shutdown_for_python()
}
+ledger::session_t python_session;
+
BOOST_PYTHON_MODULE(ledger)
{
- ledger::initialize();
- ledger::initialize_for_python();
+ ledger::set_session_context(&python_session);
}