Jump to content
  • Advertisement
Sign in to follow this  
ChaosEngine

break embedded python interpreter

This topic is 4860 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I've got an mfc that both extends and embeds python. Basically the user can run a python script from inside that app that usses various C++ objects in the app (exposed through the damn-that's-cool Boost.Python library). The python script actually runs in a seperate thread within the app. My problem is that I want a way for the user to stop the script execution. So far nothing I've found on the web works (i.e. PyErr_SetInterrupt()). Anyone have any ideas?

Share this post


Link to post
Share on other sites
Advertisement
Define "stop script execution". That could mean suspend the thread until something else triggers it; bring down the entire python interpreter; yield control from the current executing script and so on.

Share this post


Link to post
Share on other sites
Quote:
Original post by SiCrane
Define "stop script execution". That could mean suspend the thread until something else triggers it; bring down the entire python interpreter; yield control from the current executing script and so on.


sorry should've been clearer, I want to terminate the interpreter without killing the application it's embedded in.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!