ASPN ActiveState Programmer Network
  ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups | Web Services
SEARCH
advanced | search help

Reference
ActivePython 2.4
Python Documentation
Macintosh Module Reference
1. Using Python on a Macintosh
1.2 The IDE
1.2.3 Executing a script from within the IDE

MyASPN >> Reference >> ActivePython 2.4 >> Python Documentation >> Macintosh Module Reference >> 1. Using Python on a Macintosh >> 1.2 The IDE
ActivePython 2.4 documentation


1.2.3 Executing a script from within the IDE

You can run the script in the frontmost window of the Python IDE by hitting the run all button. You should be aware, however that if you use the Python convention "if __name__ == "__main__":" the script will not be ``__main__'' by default. To get that behaviour you must select the ``Run as __main__'' option from the small black triangle on the top right of the document window. Note that this option is associated with the file not the application. It will stay active after a save, however; to shut this feature off simply select it again.

See About this document... for information on suggesting changes.

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState 2004 All rights reserved