mavlink/mavlink — pull request #77 by wiseman (2012-10-28 06:27:24+00:00)
Title: Don't run the generate.py app on import (allows for use of a static analyzer like pychecker)

generate.py actually runs the app just on import of code, which prevents someone from using a static analyzer like pychecker (because the app window keeps popping up).

This patch fixes this to only run the app when the script is executed as a top-level script.

Also removed trailing whitespace and fixed a typo.