Explorar o código

web: add parent dir to sys.path

Shiv Tyagi hai 1 ano
pai
achega
9f2b06caeb
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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