diff options
-rw-r--r-- | src/pyinterp.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/pyinterp.cc b/src/pyinterp.cc index 56f9b6af..596271b8 100644 --- a/src/pyinterp.cc +++ b/src/pyinterp.cc @@ -153,8 +153,11 @@ void python_interpreter_t::initialize() break; } } +#if defined(DEBUG_ON) if (! path_initialized) - warning_(_("Ledger failed to find 'ledger/__init__.py' on the PYTHONPATH")); + DEBUG("python.init", + "Ledger failed to find 'ledger/__init__.py' on the PYTHONPATH"); +#endif } catch (const error_already_set&) { PyErr_Print(); |