python file how to trigger open application and content code example Example: run python file using python code exec(open('file.py').read())