I have MMF2 running a Python IRC bot - so far, initializing the code works - the bot connects to IRC and prints content submitted to the IRC chan back into MMF2, but I notice that when I exit MMF2 or attempt to open a different .py file, the bot code continues running.
I need MMF2 to be able to end the execution of the IRC python code itself - preferrably without having to exit the MMF2 project or destroying the Python object. Any solutions? I've tried loading a seperate python file with the content:
import os
os._exit(0)
...but the python object seems to treat it like a completely individual python file instead of applying the command to the currently running IRC.py. Admittedly, I don't know much about Python. It's more my girlfriend's thing - but she wants me to create a GUI for her Py code. -_-