Answers for "pythonpreventing an import from executing without call"

0

pythonpreventing an import from executing without call

# 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()
Posted by: Guest on March-25-2021

Code answers related to "pythonpreventing an import from executing without call"

Browse Popular Code Answers by Language