Selaa lähdekoodia

Fix the path to create-postgres.sql

Chris McDonough 10 vuotta sitten
vanhempi
commit
053147c19a
1 muutettua tiedostoa jossa 3 lisäystä ja 1 poistoa
  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()