I am working on making an easier way to add new things to my program, so I decided to create support for python scripting. Getting python to work turned out to be a lot more work then I initially thought.
I have installed python and built the needed boost libraries and compiled the example, but I cant get the example to run
Here is the code I use to create the .dll file
#include <boost/python/module.hpp>
#include <boost/python/def.hpp>
char const* greet()
{
return "hello, world";
}
BOOST_PYTHON_MODULE(hello_ext)
{
using namespace boost::python;
def("greet", greet);
}
The dll file is named hallo_ext.dll and is placed in the same directory as the python file.
Here is the code in the python file:
import hello_ext
print hello_ext.greet()
raw_input("Press return to close this window...")
Error outputted from the python file:
ImportError: No module named hello_ext.
Does anyone know what I am doing wrong?