浏览代码

web: add parent dir to sys.path

Shiv Tyagi 1 年之前
父节点
当前提交
9f2b06caeb
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      web/app.py

+ 2 - 0
web/app.py

@@ -35,6 +35,8 @@ dictConfig({
     }
 })
 
+# let app.py know about the modules in the parent directory
+sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
 import ap_git
 import metadata_manager