1 #ifndef _Python_Python_h 2 #define _Python_Python_h 3 4 //this drops any auto linking/inclusion of python/python_d libs 5 //use this when we use those boost python prelinked dlls 6 //which link to python27.dll even in debug mode 7 8 #define MS_NO_COREDLL 1 9 #define Py_ENABLE_SHARED 1 10 11 #ifdef flagBOOSTPY 12 // #ifdef _DEBUG 13 // #define BOOST_DEBUG_PYTHON 1 14 // #endif 15 #include <boost/python.hpp> 16 #else 17 #include <Python.h> 18 #endif 19 20 #include <Core/Core.h> 21 22 NAMESPACE_UPP 23 24 #ifdef flagBOOSTPY 25 // Parses the value of the active python exception 26 // NOTE SHOULD NOT BE CALLED IF NO EXCEPTION 27 std::string parse_py_exception(); 28 #endif 29 30 END_UPP_NAMESPACE 31 32 #endif 33