Skip to content

Commit

Permalink
add name == main
Browse files Browse the repository at this point in the history
  • Loading branch information
weddleben committed Dec 30, 2023
1 parent 3c5accf commit 76822d8
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions application.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

from app import app as application

if 'nt' in os.name:
application.run(debug=True)
else:
application.run()
if __name__ == "__main__":
if 'nt' in os.name:
application.run(debug=True)
else:
application.run()

0 comments on commit 76822d8

Please sign in to comment.