Adapted database scripts to be run from the root directoryt
This commit is contained in:
@ -9,7 +9,7 @@ def create_connection(db_file):
|
||||
conn = sqlite3.connect(db_file)
|
||||
|
||||
# Execute creation scripts
|
||||
sql = open("create_tables.sql", "r");
|
||||
sql = open("scripts/create_tables.sql", "r");
|
||||
conn.executescript(sql.read())
|
||||
|
||||
print(sqlite3.version)
|
||||
@ -21,4 +21,4 @@ def create_connection(db_file):
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
create_connection(r"../data/wmgzon.db")
|
||||
create_connection(r"./data/wmgzon.db")
|
||||
|
Reference in New Issue
Block a user