Use Qt4.2 openUrl to show manual
[mussa.git] / qui / mussagl.cpp
index 2e758a55bd01021c1dc2925905cdcf2ec7afa3d2..04418d2a655a5f3e0d41cfcbae394825b5ad9e0b 100644 (file)
@@ -1,7 +1,10 @@
 #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"
@@ -69,9 +72,13 @@ int main(int argc, char **argv)
     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");