Return to Snippet

Revision: 21873
at December 22, 2009 15:35 by magicrebirth


Initial Code
>>> execfile("script.py")
Executing a Script
>>>

Initial URL

                                

Initial Description
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:

Initial Title
Python: execute files from the interpreter

Initial Tags

                                

Initial Language
Python