Python: execute files from the interpreter

/ Published in: Python
Save to your folder(s)

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:

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.