0
votes
1answer
42 views

Embedding Python 3.3 in a C++ program while only able to read one line at a time from input

I am currently working on adding embedded Python support (and yes, extending is not an option) to a large program as part of my summer internship. Ideally, I can keep the Python support within a ...
0
votes
2answers
78 views

boost python, using a namespace other than main global

I am embedding python in my C++ application using boost python. I am a C++ programmer, with very limited knowledge of Python. I have a C++ class, PyExpression. Each instance of this class has a ...
0
votes
1answer
62 views

Boost python, calling function objects with a namespace

I am embedding python in my C++ application, using boost python. I would like to be able to call a boost python function object, and associate a global name space with that function call. ...
3
votes
1answer
570 views

Building Boost Python Debug

I am definitely not a bjam expert, so pardon my ignorance if it's something really stupid. I am trying to build a debug version of boost::python using this tutorial. I have built Python 3.3.0 in my ...
5
votes
4answers
1k views

Is it possible to modify PYTHONPATH at runtime?

I have a C++ application dynamically linked to the Python interpreter. I want to be able to import python modules from a particular directory. I want to modify the PYTHONPATH for my process so that ...
3
votes
0answers
481 views

Boost-Python: crash when executing script from file

When my console application tries to execute boost::python::exec_file() it hangs for a second and then crashes. It can execute the boost::python::exec without problems. I tried not using then boost ...
1
vote
1answer
423 views

Extending embedded Python in C++ - Design to interact with C++ instances

There are several packages out there that help in automating the task of writing bindings between C\C++ and other languages. In my case, I'd like to bind Python, some options for such packages are: ...
0
votes
1answer
384 views

Embedded Python loads module but does not load that module's internal import statements

At long last(!) I've compiled Boost::Python and have gotten my XCode project to import a local module. This module starts with the line from xml.dom import minidom, but when it executes, I'm given ...