Python IDLE: Run main?

Posted by Rosarch on Stack Overflow See other posts from Stack Overflow or by Rosarch
Published on 2010-05-29T16:52:00Z Indexed on 2010/05/29 17:02 UTC
Read the original article Hit count: 258

Filed under:
|

I'm in IDLE:

>>> import mymodule
>>> # ???

After importing a module with:

if __name__ == '__main__':
    doStuff()

How do I actually call main from IDLE?

© Stack Overflow or respective owner

Related posts about python

Related posts about idle