![]() |
|
|
+ Search |
![]()
|
Jul 12th, 2000 00:30
unknown unknown, Rainer Deyke, Matthew Schinckel
The standard substitute is:
>>> import myfile
or
>>> from myfile import *
However, this is not quite equivalent to #include. If you really need
behavior identical to #include, you could try the following:
exec open("myfile.h").read()