소스 검색

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