Hi I know about two ways to enter python interactive mode 1.) just start python 2.) run python -i pythonscript.py What I am looking for is slightly different: I'd like, that a python script can be started by just calling it (clicking on it), but that the script can decide to enter interactive mode if certain conditions occur. Is this possible?