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: http://www.python.org/doc/faq/programming.html#how-do-i-find-the-current-module-name </F> -- http://mail.python.org/mailman/listinfo/python-list