Re: [C++-sig] Instance access

2008-11-24 Thread Renji Panicker
Try this: main_namespace["instance"] = boost::python::ptr(this); Assuming you have exposed the class to python, of course. -/renji On Mon, Nov 24, 2008 at 10:20 AM, fileoffset <[EMAIL PROTECTED]> wrote: > > Is it possible to access an object instance from within python? > > I am trying to automa

Re: [C++-sig] console I/O

2008-11-19 Thread Renji Panicker
This is a win32 API issue, not a boost::python issue per se. You need to redirect "CONIN$" and "CONOUT$" to stdin and stdout respectively. See here: http://comsci.liu.edu/~murali/win32gui/Win32Apps.htm -/renji On Thu, Nov 20, 2008 at 2:59 AM, Alan Baljeu <[EMAIL PROTECTED]> wrote: > I have embed

Re: [C++-sig] Set Path to Standard Modules

2008-11-16 Thread Renji Panicker
You could put them in a sub-dir called "Lib" inside the dir where your exe is. -/renji 2008/11/16 Brian Dawn <[EMAIL PROTECTED]>: > Hello everyone! > > I am currently embedding python, and I would like to distribute the Python > Standard Modules with my application, in the event that the end user