From e12148af35ae41148a3041624ea004213c333a01 Mon Sep 17 00:00:00 2001 From: Nichollette Date: Tue, 3 Dec 2024 14:36:27 -0500 Subject: [PATCH] import added --- src/index.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/index.py b/src/index.py index 1008630c..ed588382 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")