Posted By

magicrebirth on 12/22/09



Versions (?)

Who likes this?

1 person have marked this snippet as a favorite


Python: execute files from the interpreter

 / Published in: Python

Scripts can also be executed from within the interpreter using the execfile(script) function built in to Python. The following example shows a script being executed using the execfile() function:

  1. >>> execfile("")
  2. Executing a Script
  3. >>>

Report this snippet  

You need to login to post a comment.