Skip to content

Instantly share code, notes, and snippets.

@samredai
Last active December 11, 2018 15:18
Show Gist options
  • Save samredai/33bae4b755656a6cc1759c60571c824c to your computer and use it in GitHub Desktop.
Save samredai/33bae4b755656a6cc1759c60571c824c to your computer and use it in GitHub Desktop.
Execute an entire Python file within your current python shell
exec(open("./filename").read())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment