Re: [Tutor] exec syntax

2007-05-08 Thread Alan Gauld
"Rikard Bosnjakovic" <[EMAIL PROTECTED]> wrote >> I can see how to use it to execute a script of code embedded in the >> program >> (that example was provided in the documentation) but I cannot >> figure out the >> syntax to use it to run another python program in another file. > > Use execfile

Re: [Tutor] exec syntax

2007-05-05 Thread Rikard Bosnjakovic
On 5/5/07, Jason Coggins <[EMAIL PROTECTED]> wrote: > I can see how to use it to execute a script of code embedded in the program > (that example was provided in the documentation) but I cannot figure out the > syntax to use it to run another python program in another file. Use execfile(). --

[Tutor] exec syntax

2007-05-05 Thread Jason Coggins
Would someone please provide me with a simple example of the syntax to use the exec command to open a file. I can see how to use it to execute a script of code embedded in the program (that example was provided in the documentation) but I cannot figure out the syntax to use it to run another py