Normally you can execute a Python script for example: python myscript.py, but if you are in the interactive mode, how is it possible to execute a Python script
python myscript.py
You can also use the subprocess module. Something like:
subprocess
>>> import subprocess >>> proc = subprocess.Popen(['./script.py']) >>> proc.communicate()