how to include a file -- not import??

Emile van Sebille emile at fenx.com
Thu Jan 6 19:49:36 EST 2000


----- Original Message ----- 
From: Andrew Csillag <andrew at starmedia.net>
<snip>
> exec open('filename').read() 


That's neat!  I'm assuming that in going from py to pyc the
compiler executes this line causing the additional source to
be read in and compiled as though it were part of the containing
source file.

All you need to do is watch out that you rm/del/recompile all 
container pyc's whenever you modify include files...

now-you-see-me-now-you-don't-ly y'rs

Emile van Sebille
emile at fenx.com
-------------------







More information about the Python-list mailing list