include a file in a python program

Steven D'Aprano steve at REMOVE-THIS-cybersource.com.au
Sun Sep 5 19:45:25 EDT 2010


On Mon, 06 Sep 2010 00:27:13 +0100, MRAB wrote:

> import imp
> python = imp.load_source("python", "python.txt")

Nice!


-- 
Steven



More information about the Python-list mailing list