소스 검색

Fix the path to create-postgres.sql

Chris McDonough 10 년 전
부모
커밋
053147c19a
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      frameworks/Python/pyramid/create_database.py

+ 3 - 1
frameworks/Python/pyramid/create_database.py

@@ -5,7 +5,9 @@ if __name__ == "__main__":
     """
     Initialize database
     """
-    with codecs.open('../config/create-postgres.sql', 'r', encoding='utf-8') as fp:
+    with codecs.open('../../../config/create-postgres.sql',
+                     'r',
+                     encoding='utf-8') as fp:
         sql = fp.read()
     DBSession.execute(sql)
     DBSession.commit()