Browse Source

Fix paths

Suren A. Chilingaryan 4 years ago
parent
commit
0c9507dedc
1 changed files with 3 additions and 2 deletions
  1. 3 2
      core.py

+ 3 - 2
core.py

@@ -150,8 +150,8 @@ def fetchDataADEI():
 
     with open("/tmp/.tmp.yaml", 'w') as stream_tmp:
         stream_tmp.write(yaml.dump(cache_data, default_flow_style=False))
-    src_file = os.getcwd() + "/tmp/.tmp.yaml"
-    dst_file = os.getcwd() + "/tmp/cache.yaml"
+    src_file = "/tmp/.tmp.yaml"
+    dst_file = "/tmp/cache.yaml"
     shutil.copy(src_file, dst_file)
 
     
@@ -493,6 +493,7 @@ application = tornado.web.Application([
     (r"/backup/?", BackupHandler),
     (r"/stop/?", StopHandler),
     (r"/designer/?", DesignerHandler),
+    (r"/", StatusHandler),
     (r"/status/?", StatusHandler),
     (r"/save/?", SaveHandler),
     (r"/getdata/?", GetDataHandler),