From 4681e58d7f3cda2a2ac6d05b6ec1a106f568e029 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sat, 19 May 2012 19:32:40 -0500 Subject: Converted the Ledger build system to use CMake --- src/pyinterp.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/pyinterp.cc') diff --git a/src/pyinterp.cc b/src/pyinterp.cc index 3c864910..135a088b 100644 --- a/src/pyinterp.cc +++ b/src/pyinterp.cc @@ -166,7 +166,7 @@ void python_interpreter_t::hack_system_paths() python::list paths(sys_dict["path"]); -#if defined(DEBUG_ON) +#if DEBUG_ON bool path_initialized = false; #endif int n = python::extract(paths.attr("__len__")()); @@ -189,13 +189,13 @@ void python_interpreter_t::hack_system_paths() throw_(std::runtime_error, _("Python failed to initialize (couldn't find ledger)")); } -#if defined(DEBUG_ON) +#if DEBUG_ON path_initialized = true; #endif break; } } -#if defined(DEBUG_ON) +#if DEBUG_ON if (! path_initialized) DEBUG("python.init", "Ledger failed to find 'ledger/__init__.py' on the PYTHONPATH"); -- cgit v1.2.3