From d23e23dbca31aa4ce5b61c64b986244d3eed9171 Mon Sep 17 00:00:00 2001 From: Blake DeMarcy Date: Fri, 3 Mar 2017 18:15:09 -0600 Subject: [PATCH] added module check to main --- main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 40aa5e2..78a55a6 100644 --- a/main.py +++ b/main.py @@ -1,4 +1,5 @@ from src import schema from src import server -server.run("localhost", 7066) +if __name__ == '__main__': + server.run("localhost", 7066)