Pythonpreventing einen Import aus der Ausführung ohne Anruf

# stuff to run always here such as class/def
def main():
    pass

if __name__ == "__main__":
   # stuff only to run when not called via 'import' here
   main()
Shiny Swiftlet