Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

if __name__ == '__main__':

Help
2006-10-21
2013-05-01
  • Barton Cline
    Barton Cline
    2006-10-21

    I build mosules with the classic
    if __name__ == '__main__':
        #run test code

    When I import this module in
    #Boa:App:BoaApp
    the test code is run. What am I doing wrong? Can I change __name__ to something beside '__main__'?