diff options
Diffstat (limited to 'src/textual.cc')
-rw-r--r-- | src/textual.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/textual.cc b/src/textual.cc index a4e03435..95635184 100644 --- a/src/textual.cc +++ b/src/textual.cc @@ -1156,8 +1156,8 @@ void instance_t::python_directive(char * line) if (! python_session->is_initialized) python_session->initialize(); - python_session->main_nspace["journal"] = - python::object(python::ptr(context.journal)); + python_session->main_module->define_global + ("journal", python::object(python::ptr(context.journal))); python_session->eval(script.str(), python_interpreter_t::PY_EVAL_MULTI); } #endif // HAVE_BOOST_PYTHON |