include a file in a python program

Steven D'Aprano steve at REMOVE-THIS-cybersource.com.au
Mon Sep 6 01:45:25 CEST 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