Jalankan file Python dalam mode interaktif

exec(open("./filename").read())
#this works for python3 and not 2
Victorious Vole