summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/py_amount.cc4
-rw-r--r--src/pyledger.cc6
2 files changed, 9 insertions, 1 deletions
diff --git a/src/py_amount.cc b/src/py_amount.cc
index c1dd7649..61e3e4b5 100644
--- a/src/py_amount.cc
+++ b/src/py_amount.cc
@@ -34,11 +34,14 @@ void export_amount()
scope().attr("AMOUNT_PARSE_NO_REDUCE") = AMOUNT_PARSE_NO_REDUCE;
class_< amount_t > ("amount")
+#if 0
.def("initialize", &amount_t::initialize)
.staticmethod("initialize")
.def("shutdown", &amount_t::shutdown)
.staticmethod("shutdown")
+#endif
+#if 0
.add_static_property("keep_base", &amount_t::keep_base)
.add_static_property("keep_price", &amount_t::keep_price)
@@ -46,6 +49,7 @@ void export_amount()
.add_static_property("keep_tag", &amount_t::keep_tag)
.add_static_property("full_strings", &amount_t::full_strings)
+#endif
.def(init<double>())
.def(init<long>())
diff --git a/src/pyledger.cc b/src/pyledger.cc
index 08e6dbd1..1fe5708a 100644
--- a/src/pyledger.cc
+++ b/src/pyledger.cc
@@ -37,8 +37,12 @@ void initialize_for_python()
ledger::session_t python_session;
+void hello() {
+ std::cout << "Hello, world!" << std::endl;
+}
+
BOOST_PYTHON_MODULE(ledger)
{
- ledger::initialize_for_python();
ledger::set_session_context(&python_session);
+ ledger::initialize_for_python();
}