Category Archives: Python

py2exe

I have written a wxPython script to create a GUI prototype for review, but it is not convenient to ask user installing python. Fortunately py2exe is able to rescue. Install py2exe, create setup.py according to the Tutorial.Run the following command: … Continue reading

Posted in Python | 1 Comment

Redirect python stdout/stderr via boost.python

It is desirable to redirect python stdout/stderr when embedding python scripts in a GUI application. The following is a simple class that can achieve the goal. First step is declaring a C++ class to simulate python stdio class PythonStdIoRedirect {public:    … Continue reading

Posted in Python | Leave a comment