home · contact · privacy
Move TEMPLATES_DIR setting into run.py.
[plomtask] / run.py
diff --git a/run.py b/run.py
index 644fc4abbf5aa7fcc1e7cd410d931e0f1af8798f..d94905dc69bc97379567fb3f79d5f7288c7bbc57 100755 (executable)
--- a/run.py
+++ b/run.py
@@ -5,11 +5,13 @@ from plomtask.misc import HandledException
 from plomtask.http import TaskHandler, TaskServer
 
 HTTP_PORT = 8082
+TEMPLATES_DIR = 'templates'
 
 
 if __name__ == '__main__':
     try:
-        server = TaskServer(('localhost', HTTP_PORT), TaskHandler)
+        server = TaskServer(TEMPLATES_DIR,
+                            ('localhost', HTTP_PORT), TaskHandler)
         print(f'running at port {HTTP_PORT}')
         try:
             server.serve_forever()