"sourcing" files

Martin von Loewis loewis at informatik.hu-berlin.de
Wed Jan 16 04:21:24 EST 2002


18k11tm001 at sneakemail.com (Russ) writes:

> to simply paste the code from anotherfile.tcl into the original file.
> Does Python have an equivalent capability? 

Depending on whether you have the source as a file name, or as a
string, either the exec statement or the execfile function will
provide this capability.

Regards,
Martin



More information about the Python-list mailing list