Skip to content

Commit e12148a

Browse files
committed
import added
1 parent 1c27db4 commit e12148a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/index.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
""" SmartAPI Entry Point """
22

33
import logging
4+
from os.path import exists
45

56
from threading import Thread
67

@@ -20,7 +21,7 @@ def run_routine():
2021

2122
class WebAppHandler(RequestHandler):
2223
def get(self):
23-
if os.path.exists("../web-app/dist/index.html"):
24+
if exists("../web-app/dist/index.html"):
2425
self.render("../web-app/dist/index.html")
2526

2627

0 commit comments

Comments
 (0)