Newbie Question: Is there a Python equiv to Perl's "do" statement?

Christian Tismer tismer at tismer.com
Thu Apr 27 14:07:21 EDT 2000


mdefreitas at sikorsky.com wrote:
> 
> I'm trying to call a python script from another python script (given
> the filename).

Yes, you can use the execfile function to do that.

execfile("otherscript.py")

ciao - chris

-- 
Christian Tismer             :^)   <mailto:tismer at appliedbiometrics.com>
Applied Biometrics GmbH      :     Have a break! Take a ride on Python's
Kaunstr. 26                  :    *Starship* http://starship.python.net
14163 Berlin                 :     PGP key -> http://wwwkeys.pgp.net
PGP Fingerprint       E182 71C7 1A9D 66E9 9D15  D3CC D4D7 93E2 1FAE F6DF
     where do you want to jump today?   http://www.stackless.com




More information about the Python-list mailing list