include files?

Bengt Richter bokr at oz.net
Fri Jun 20 04:16:45 EDT 2003


On 19 Jun 2003 14:30:39 GMT, "rgndrp" <erased*remove_this*@xs4all.nl> wrote:

>hi all,
>
>I use python for making cgi scripts on a iis/w2k
>box and i wanted to know if it is it possible to include files in
>python?
>like: <!--#include file="file.inc"-->
>or something :)
>
It depends on you context. If you are in a Python source context,
execfile has a similar effect to #include. Chances are there are
better ways to solve your problem though.

Regards,
Bengt Richter




More information about the Python-list mailing list