Sections
Timeline
View Tickets
New Ticket
Sub-Sections
Download
Unified Diff
Zip Archive
Metanav
Preferences
About Trac
Links
Slowchop Studios
Gerald Kaszuba
Advertisement

Changeset 45 for trunk/examples/basic.py

Show
Ignore:
Timestamp:
24/06/07 05:55:07 (19 months ago)
Author:
gak
Message:

check to see if examples scripts are run from the command line (so epydoc can parse them without running them)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/examples/basic.py

    r42 r45  
    3939        pass 
    4040 
    41 banana = Banana() 
    42 banana.eat() 
     41def main(): 
     42    banana = Banana() 
     43    banana.eat() 
     44    pycallgraph.make_dot_graph('basic.png') 
    4345 
    44 pycallgraph.make_dot_graph('basic.png') 
     46if __name__ == '__main__': 
     47    main() 
    4548 
    4649# vim:set shiftwidth=4 tabstop=4 expandtab textwidth=79: