#include <boost/filesystem/operations.hpp>
using namespace boost::filesystem;
+#ifdef USE_PYTHON
#include "py/python.hpp"
+#endif
+
#include "qui/MussaWindow.hpp"
#include "alg/parse_options.hpp"
#include "mussa_exceptions.hpp"
qFatal(e.what());
} catch (boost::filesystem::filesystem_error e) {
qFatal(e.what());
- } catch( boost::python::error_already_set ) {
+ }
+#ifdef USE_PYTHON
+ catch( boost::python::error_already_set ) {
PyErr_Print();
- } catch (std::runtime_error e) {
+ }
+#endif
+ catch (std::runtime_error e) {
qFatal(e.what());
} catch (...) {
qFatal("unrecognized exception");