diff --git a/src/index.py b/src/index.py index 1008630..ed58838 100644 --- a/src/index.py +++ b/src/index.py @@ -1,6 +1,7 @@ """ SmartAPI Entry Point """ import logging +from os.path import exists from threading import Thread @@ -20,7 +21,7 @@ def run_routine(): class WebAppHandler(RequestHandler): def get(self): - if os.path.exists("../web-app/dist/index.html"): + if exists("../web-app/dist/index.html"): self.render("../web-app/dist/index.html")