Python repl in python application

Posted by Olorin on Stack Overflow See other posts from Stack Overflow or by Olorin
Published on 2010-04-29T23:21:24Z Indexed on 2010/04/29 23:27 UTC
Read the original article Hit count: 563

Filed under:
|
|

Hello i am learning python(so i can use qt with python not only c++) and i'm curios if it would be possible to embed a python interpreter in my application as a repl. I would like to give users to possibility to script the app using python either loading a file (and that file to act as a plugin for the app) or by evaluating code entered in a text box or something like that. Just like you can embed the interpreter in C or C++ and script the app using python can this be done if the application is itself written in python(and made a stand-alone binary using py2exe or something similar)? something like Anders did with the C# repl or Miguel with mono.

Thanks.

© Stack Overflow or respective owner

Related posts about python

Related posts about scripting