In article <[EMAIL PROTECTED]>,
Fredrik Lundh wrote:
>Stephan Schulz wrote:
>
>> Is there a (portable, standard) way for the program/module to find out
>> if it is imported or executed stand-alone?
>
>if a module is executed, it's name is set to "__main__". see:
[...]
It works. Thanks!
Bye,
Stephan
--
-------------------------- It can be done! ---------------------------------
Please email me as [EMAIL PROTECTED] (Stephan Schulz)
----------------------------------------------------------------------------
--
http://mail.python.org/mailman/listinfo/python-list