how to include a file -- not import??

Gerrit Holl gerrit.holl at pobox.com
Fri Jan 7 08:40:58 EST 2000


Andrew Csillag wrote on 947167610:
> exec open('filename').read() 

execfile('filename')

-- 
-----BEGIN GEEK CODE BLOCK----- http://www.geekcode.com
Version: 3.12
GCS dpu s-:-- a14 C++++>$ UL++ P--- L+++ E--- W++ N o? K? w--- !O !M !V PS+ PE?
Y? PGP-- t- 5? X? R- tv- b+(++) DI D+ G++ !e !r !y
-----END GEEK CODE BLOCK-----
If you think Linux should get more hardware drivers, _please_ sign this:
http://www.libranet.com/petition.html




More information about the Python-list mailing list