[C++-sig] Failed to import pyd File When python embed into C++

2013-01-22 Thread salinea
I create a pyd File named "testPyd" with boostPython,and then I import the testPyd module into "test.py", it works perfect! But when I embeded the python interpreter into my C++ project and run the "test.py", it comes out a "ImportErr: no module named testPyd". It has confused me for two days and

Re: [C++-sig] to_python converter and make_getter

2013-01-22 Thread Michael Wild
On 01/22/2013 11:27 PM, Jim Bosch wrote: > On 01/22/2013 04:18 PM, Michael Wild wrote: >> Dear all >> >> I have defined a to_python converter following >> http://misspent.wordpress.com/2009/09/27/how-to-write-boost-python-converters. >> >> Everything is fine and dandy, however what bugs me is havin

Re: [C++-sig] to_python converter and make_getter

2013-01-22 Thread Jim Bosch
On 01/22/2013 04:18 PM, Michael Wild wrote: Dear all I have defined a to_python converter following http://misspent.wordpress.com/2009/09/27/how-to-write-boost-python-converters. Everything is fine and dandy, however what bugs me is having to specify a return_value_policy() for every make_getter

[C++-sig] to_python converter and make_getter

2013-01-22 Thread Michael Wild
Dear all I have defined a to_python converter following http://misspent.wordpress.com/2009/09/27/how-to-write-boost-python-converters. Everything is fine and dandy, however what bugs me is having to specify a return_value_policy() for every make_getter call. Looking through the sources it seems th