<human>:  How to execute a file within the python interpreter?
<bot>: Here is some code to execute file 'filename.py'

exec(compile(open('filename.py').read(), 'filename.py', 'exec'))

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.